home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / benchmarks / itc / cc1.spur / parse.tab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-30  |  109.2 KB  |  3,509 lines

  1.  
  2. /*  A Bison parser, made from parse.y  */
  3.  
  4. #define    IDENTIFIER    258
  5. #define    TYPENAME    259
  6. #define    SCSPEC    260
  7. #define    TYPESPEC    261
  8. #define    TYPE_QUAL    262
  9. #define    CONSTANT    263
  10. #define    STRING    264
  11. #define    ELLIPSIS    265
  12. #define    SIZEOF    266
  13. #define    ENUM    267
  14. #define    STRUCT    268
  15. #define    UNION    269
  16. #define    IF    270
  17. #define    ELSE    271
  18. #define    WHILE    272
  19. #define    DO    273
  20. #define    FOR    274
  21. #define    SWITCH    275
  22. #define    CASE    276
  23. #define    DEFAULT    277
  24. #define    BREAK    278
  25. #define    CONTINUE    279
  26. #define    RETURN    280
  27. #define    GOTO    281
  28. #define    ASM    282
  29. #define    TYPEOF    283
  30. #define    ALIGNOF    284
  31. #define    ASSIGN    285
  32. #define    OROR    286
  33. #define    ANDAND    287
  34. #define    EQCOMPARE    288
  35. #define    ARITHCOMPARE    289
  36. #define    LSHIFT    290
  37. #define    RSHIFT    291
  38. #define    UNARY    292
  39. #define    PLUSPLUS    293
  40. #define    MINUSMINUS    294
  41. #define    HYPERUNARY    295
  42. #define    POINTSAT    296
  43.  
  44. #line 47 "parse.y"
  45.  
  46. #include "config.h"
  47. #include "tree.h"
  48. #include "parse.h"
  49. #include "c-tree.h"
  50. #include "flags.h"
  51. #include "alloca.h"
  52.  
  53. #include <stdio.h>
  54. #include <errno.h>
  55.  
  56. #ifndef errno
  57. extern int errno;
  58. #endif
  59.  
  60. /* Cause the `yydebug' variable to be defined.  */
  61. #define YYDEBUG
  62.  
  63. #line 67 "parse.y"
  64. typedef union {long itype; tree ttype; enum tree_code code; char *cptr; } YYSTYPE;
  65. #line 151 "parse.y"
  66.  
  67. /* the declaration found for the last IDENTIFIER token read in.
  68.    yylex must look this up to detect typedefs, which get token type TYPENAME,
  69.    so it is left around in case the identifier is not a typedef but is
  70.    used in a context which makes it a reference to a variable.  */
  71. static tree lastiddecl;
  72.  
  73. static tree make_pointer_declarator ();
  74. static tree combine_strings ();
  75. static void reinit_parse_for_function ();
  76.  
  77. extern double atof ();
  78.  
  79. /* List of types and structure classes of the current declaration */
  80. tree current_declspecs;
  81.  
  82. char *input_filename;        /* source file current line is coming from */
  83. char *main_input_filename;    /* top-level source file */
  84.  
  85. static int yylex ();
  86.  
  87. #ifndef YYLTYPE
  88. typedef
  89.   struct yyltype
  90.     {
  91.       int timestamp;
  92.       int first_line;
  93.       int first_column;
  94.       int last_line;
  95.       int last_column;
  96.       char *text;
  97.    }
  98.   yyltype;
  99.  
  100. #define YYLTYPE yyltype
  101. #endif
  102.  
  103. #define    YYACCEPT    return(0)
  104. #define    YYABORT    return(1)
  105. #define    YYERROR    return(1)
  106. #include <stdio.h>
  107.  
  108. #ifndef __STDC__
  109. #define const
  110. #endif
  111.  
  112.  
  113.  
  114. #define    YYFINAL        485
  115. #define    YYFLAG        -32768
  116. #define    YYNTBASE    64
  117.  
  118. #define YYTRANSLATE(x) ((unsigned)(x) <= 296 ? yytranslate[x] : 163)
  119.  
  120. static const char yytranslate[] = {     0,
  121.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  122.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  123.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  124.      2,     2,    59,     2,     2,     2,    47,    38,     2,    54,
  125.     55,    45,    43,    60,    44,    53,    46,     2,     2,     2,
  126.      2,     2,     2,     2,     2,     2,     2,    33,    56,     2,
  127.     31,     2,    32,     2,     2,     2,     2,     2,     2,     2,
  128.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  129.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  130.     62,     2,    63,    37,     2,     2,     2,     2,     2,     2,
  131.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  132.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  133.      2,     2,    61,    36,    57,    58,     2,     2,     2,     2,
  134.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  135.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  136.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  137.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  138.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  139.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  140.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  141.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  142.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  143.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  144.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  145.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  146.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  147.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  148.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  149.     26,    27,    28,    29,    30,    34,    35,    39,    40,    41,
  150.     42,    48,    49,    50,    51,    52
  151. };
  152.  
  153. static const short yyrline[] = {     0,
  154.    174,   175,   182,   184,   184,   185,   187,   189,   190,   197,
  155.    203,   205,   207,   209,   211,   212,   213,   216,   222,   224,
  156.    225,   227,   232,   234,   235,   237,   242,   244,   245,   249,
  157.    251,   254,   256,   258,   260,   262,   264,   266,   270,   274,
  158.    277,   280,   283,   287,   289,   291,   293,   296,   308,   313,
  159.    315,   320,   322,   324,   326,   328,   330,   332,   334,   336,
  160.    338,   340,   342,   344,   346,   348,   350,   352,   354,   358,
  161.    380,   381,   383,   385,   387,   394,   399,   401,   403,   405,
  162.    407,   409,   414,   416,   420,   422,   425,   427,   428,   429,
  163.    434,   439,   442,   444,   446,   454,   457,   461,   463,   465,
  164.    473,   476,   478,   480,   489,   492,   496,   498,   506,   507,
  165.    508,   509,   513,   521,   522,   523,   526,   528,   531,   533,
  166.    536,   539,   547,   552,   553,   558,   563,   564,   569,   571,
  167.    573,   575,   581,   584,   591,   593,   598,   601,   606,   608,
  168.    610,   612,   620,   626,   628,   630,   632,   638,   644,   646,
  169.    648,   650,   652,   655,   660,   664,   667,   669,   671,   673,
  170.    676,   678,   681,   684,   687,   690,   694,   696,   699,   701,
  171.    703,   717,   721,   724,   728,   731,   732,   736,   739,   741,
  172.    750,   752,   757,   760,   764,   767,   771,   774,   777,   780,
  173.    784,   787,   791,   795,   797,   799,   801,   803,   805,   807,
  174.    809,   817,   819,   820,   823,   825,   828,   831,   840,   842,
  175.    845,   846,   850,   854,   860,   865,   867,   869,   873,   876,
  176.    877,   879,   882,   886,   887,   890,   892,   897,   902,   906,
  177.    912,   918,   925,   927,   953,   953,   964,   964,   968,   972,
  178.    975,   978,   984,   991,   997,  1002,  1007,  1007,  1010,  1013,
  179.   1017,  1020,  1025,  1027,  1030,  1032,  1036,  1043,  1046,  1051,
  180.   1054,  1057,  1059,  1061,  1065,  1067,  1073,  1075,  1077,  1081,
  181.   1084,  1090,  1093,  1095,  1097,  1099,  1104,  1107
  182. };
  183.  
  184. static const char * const yytname[] = {     0,
  185. "error","$illegal.","IDENTIFIER","TYPENAME","SCSPEC","TYPESPEC","TYPE_QUAL","CONSTANT","STRING","ELLIPSIS",
  186. "SIZEOF","ENUM","STRUCT","UNION","IF","ELSE","WHILE","DO","FOR","SWITCH",
  187. "CASE","DEFAULT","BREAK","CONTINUE","RETURN","GOTO","ASM","TYPEOF","ALIGNOF","ASSIGN",
  188. "'='","'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQCOMPARE","ARITHCOMPARE",
  189. "LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","PLUSPLUS","MINUSMINUS",
  190. "HYPERUNARY","POINTSAT","'.'","'('","')'","';'","'}'","'~'","'!'","','",
  191. "'{'","'['","']'","program"
  192. };
  193.  
  194. static const short yyr1[] = {     0,
  195.     64,    64,    66,    65,    67,    65,    68,    68,    68,    69,
  196.     69,    69,    69,    69,    69,    69,    69,    71,    72,    70,
  197.     70,    73,    74,    70,    70,    75,    76,    70,    70,    77,
  198.     77,    78,    78,    78,    78,    78,    78,    78,    79,    80,
  199.     80,    81,    81,    82,    82,    82,    82,    82,    82,    82,
  200.     82,    82,    82,    82,    82,    82,    82,    82,    82,    82,
  201.     82,    82,    82,    82,    82,    82,    82,    82,    82,    83,
  202.     83,    83,    83,    83,    84,    83,    83,    83,    83,    83,
  203.     83,    83,    85,    85,    86,    86,    87,    87,    87,    87,
  204.     88,    89,    89,    89,    89,    90,    90,    91,    91,    91,
  205.     92,    92,    92,    92,    93,    93,    94,    94,    95,    95,
  206.     95,    95,    95,    96,    96,    96,    97,    97,    98,    98,
  207.     99,    99,   101,   100,   100,   103,   102,   102,   104,   104,
  208.    104,   104,   105,   105,   106,   106,   107,   107,   107,   107,
  209.    107,   107,   108,   108,   108,   108,   108,   109,   109,   109,
  210.    109,   109,   109,   111,   110,   110,   110,   112,   110,   110,
  211.    110,   113,   110,   114,   110,   110,   115,   115,   116,   116,
  212.    116,   117,   117,   117,   118,   118,   118,   119,   119,   119,
  213.    120,   120,   121,   121,   122,   122,   123,   123,   124,   124,
  214.    125,   125,   126,   126,   126,   126,   126,   126,   126,   126,
  215.    126,   127,   127,   127,   128,   128,   129,   130,   131,   131,
  216.    132,   132,   132,   132,   134,   133,   135,   135,   136,   135,
  217.    135,   137,   138,   135,   139,   140,   135,   141,   142,   143,
  218.    135,   144,   135,   145,   135,   146,   135,   135,   135,   135,
  219.    135,   135,   135,   135,   135,   147,   135,   135,   148,   148,
  220.    149,   149,   150,   150,   151,   151,   152,   154,   153,   156,
  221.    155,   157,   157,   157,   158,   158,   159,   159,   159,   160,
  222.    160,   161,   161,   161,   161,   161,   162,   162
  223. };
  224.  
  225. static const short yyr2[] = {     0,
  226.      0,     1,     0,     2,     0,     3,     1,     1,     5,     3,
  227.      4,     4,     2,     2,     2,     2,     1,     0,     0,     7,
  228.      4,     0,     0,     7,     4,     0,     0,     6,     3,     1,
  229.      1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
  230.      1,     1,     3,     1,     2,     2,     4,     7,     2,     4,
  231.      2,     4,     3,     3,     3,     3,     3,     3,     3,     3,
  232.      3,     3,     3,     3,     3,     3,     5,     3,     3,     1,
  233.      1,     1,     3,     3,     0,     4,     4,     4,     3,     3,
  234.      2,     2,     1,     2,     0,     1,     1,     1,     2,     2,
  235.      0,     4,     4,     2,     2,     2,     3,     0,     2,     2,
  236.      1,     1,     2,     2,     2,     3,     0,     2,     1,     1,
  237.      1,     4,     4,     1,     1,     1,     1,     3,     1,     3,
  238.      0,     4,     0,     5,     2,     0,     5,     2,     1,     3,
  239.      4,     1,     1,     3,     1,     1,     3,     3,     4,     3,
  240.      3,     1,     3,     4,     3,     3,     1,     3,     3,     3,
  241.      4,     3,     1,     0,     6,     4,     2,     0,     6,     4,
  242.      2,     0,     7,     0,     6,     2,     0,     1,     0,     3,
  243.      2,     3,     3,     1,     0,     1,     3,     1,     3,     2,
  244.      1,     3,     1,     3,     2,     2,     0,     1,     1,     2,
  245.      0,     2,     3,     3,     2,     3,     4,     3,     2,     3,
  246.      2,     1,     2,     2,     0,     1,     2,     0,     1,     2,
  247.      2,     5,     4,     4,     0,     6,     1,     2,     0,     4,
  248.      1,     0,     0,     7,     0,     0,     9,     0,     0,     0,
  249.     12,     0,     6,     0,     5,     0,     4,     2,     2,     2,
  250.      3,     6,     8,    10,     3,     0,     4,     1,     0,     1,
  251.      0,     1,     0,     1,     1,     3,     4,     0,     2,     0,
  252.      2,     2,     2,     2,     2,     2,     0,     1,     3,     1,
  253.      3,     2,     2,     2,     2,     2,     1,     3
  254. };
  255.  
  256. static const short yydefact[] = {     3,
  257.      5,     0,     0,     0,   111,   102,   109,   101,     0,     0,
  258.      0,     0,     0,    17,     4,     8,     7,     0,    91,    91,
  259.     98,   110,     6,    15,    16,    30,    31,   164,   166,   169,
  260.    157,   169,   161,     0,     0,   153,   191,     0,     0,   119,
  261.      0,    14,     0,   104,   103,    13,     0,    98,    96,     0,
  262.    162,     0,   154,     0,   158,    83,     0,    70,   189,    71,
  263.      0,     0,    32,    34,    33,     0,    35,    36,     0,    37,
  264.     38,     0,     0,    39,    42,    44,    72,   187,   107,     0,
  265.    187,     0,     0,    10,     0,    29,     0,   260,     0,     0,
  266.    128,   142,   191,     0,     0,   117,     0,   135,   136,     0,
  267.      0,    97,   100,   114,   115,    99,   116,   183,   167,   181,
  268.      0,   174,   171,   156,    91,     0,    91,   169,   160,   169,
  269.     84,     0,     0,    49,     0,    51,    45,     0,     0,     0,
  270.      0,    46,   112,     0,     0,     0,   251,     0,     0,     0,
  271.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  272.      0,    81,    82,     0,     0,    40,     0,   191,   258,     0,
  273.    185,   188,   105,   113,   190,   107,   186,   192,   150,   149,
  274.    120,   121,     0,   148,     0,   152,     0,     0,    27,    86,
  275.      0,    91,    91,    88,   126,     0,     0,    12,     0,    21,
  276.      0,   125,   260,     0,    11,    25,     0,     0,   168,     0,
  277.    167,   175,   170,   175,     0,     0,     9,     0,     0,    74,
  278.     73,   208,     0,     0,    43,    69,    68,   252,     0,    66,
  279.     65,    63,    64,    62,    61,    60,    58,    59,    53,    54,
  280.     55,    56,    57,    80,    79,     0,    41,     0,   195,     0,
  281.    199,     0,   201,     0,   258,     0,   108,   106,     0,     0,
  282.    277,   187,   187,   261,     0,   268,   270,     0,   151,   207,
  283.      0,    89,    90,    94,     0,    95,     0,     0,   141,   137,
  284.    118,    19,   123,   138,   140,     0,    23,   184,   182,   165,
  285.      0,     0,   178,   172,   176,   173,   155,   159,    50,    52,
  286.    211,     0,    76,     0,    47,     0,    77,    78,   194,   193,
  287.      0,   259,     0,   200,   196,   198,     0,   122,   264,   147,
  288.    191,   258,   272,   273,   274,   191,   275,   276,   262,     0,
  289.    263,     0,     0,    28,   209,     0,     0,   121,   132,     0,
  290.    129,   127,     0,     0,   139,     0,   163,   180,     0,     0,
  291.      0,    70,   111,     0,   222,   225,     0,     0,     0,     0,
  292.      0,     0,     0,     0,   249,   248,     0,     0,   205,     0,
  293.    217,   221,   202,   133,   167,    67,   266,   265,   197,   195,
  294.    260,     0,   195,   269,   271,   278,   210,    92,    93,     0,
  295.     20,   124,    24,   179,   177,   213,     0,     0,     0,   251,
  296.      0,     0,   236,   238,   239,   240,     0,     0,   250,     0,
  297.    246,   218,     0,     0,   214,   204,   203,   219,     0,     0,
  298.    146,   143,   145,     0,   130,     0,     0,     0,     0,     0,
  299.      0,   234,     0,   241,   245,     0,     0,   212,     0,   134,
  300.     48,   144,   131,   215,     0,   226,   228,   232,     0,   237,
  301.      0,   247,   220,     0,   223,     0,   251,     0,   235,   253,
  302.      0,   216,     0,     0,     0,   233,     0,     0,   254,   255,
  303.    242,   224,     0,   229,     0,   253,     0,     0,     0,   251,
  304.      0,     0,   243,   256,   227,     0,   257,     0,   230,   244,
  305.      0,   231,     0,     0,     0
  306. };
  307.  
  308. static const short yydefgoto[] = {   483,
  309.      1,     2,     3,    15,    16,    17,   191,   333,   197,   336,
  310.     90,   261,   357,    72,   358,   236,    74,    75,    76,   130,
  311.     77,   179,   180,    18,   181,   182,    49,   183,    78,   163,
  312.     21,   106,    95,    39,    91,    96,   334,    40,   268,   364,
  313.    365,   172,    98,   313,    99,    22,   118,   120,   111,    50,
  314.    200,    52,   116,   284,   285,   109,   110,    80,   161,    81,
  315.     82,   162,   360,   404,   184,   292,   324,   361,   362,   444,
  316.    363,   429,   388,   453,   389,   446,   447,   470,   481,   448,
  317.    439,   423,   427,   400,   219,   458,   459,   460,   241,   242,
  318.    174,   175,   254,   302,   255,   256,   257,   258
  319. };
  320.  
  321. static const short yypact[] = {    29,
  322.     42,  1365,  1365,    20,-32768,-32768,-32768,-32768,    65,    76,
  323.     78,    40,   106,-32768,-32768,-32768,-32768,   225,    -7,   637,
  324. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    90,-32768,
  325.    102,-32768,   108,   173,  1181,-32768,-32768,   225,   132,-32768,
  326.    315,-32768,   154,-32768,-32768,-32768,   225,-32768,   419,   138,
  327. -32768,   756,-32768,  1325,-32768,-32768,    23,-32768,-32768,-32768,
  328.   1225,  1247,-32768,-32768,-32768,  1269,-32768,-32768,   669,-32768,
  329. -32768,  1269,   166,   158,  1445,   282,   231,   111,-32768,   179,
  330.    946,    44,   250,-32768,   154,-32768,   196,-32768,   794,   971,
  331.    224,-32768,-32768,   154,   146,-32768,   942,    -1,     3,   163,
  332.    360,   419,-32768,-32768,-32768,-32768,-32768,   241,   206,-32768,
  333.    138,-32768,-32768,-32768,-32768,   239,   519,-32768,-32768,-32768,
  334. -32768,   242,   669,-32768,   669,-32768,-32768,   226,   236,   219,
  335.    251,-32768,-32768,  1269,  1269,  1269,  1269,  1269,  1269,  1269,
  336.   1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,
  337.   1269,-32768,-32768,   138,   138,  1269,  1269,-32768,   111,   816,
  338. -32768,    37,   262,-32768,-32768,-32768,-32768,-32768,     3,-32768,
  339. -32768,   260,   173,-32768,  1394,-32768,   244,   259,-32768,   460,
  340.    433,   267,  1422,-32768,-32768,   232,   255,-32768,   154,-32768,
  341.    971,   293,-32768,   838,-32768,-32768,   971,  1269,   138,   256,
  342.    206,   257,-32768,   257,  1329,  1348,-32768,   278,   283,-32768,
  343. -32768,   284,   290,  1122,  1445,  1445,  1445,-32768,   317,  1416,
  344.   1457,  1468,  1158,  1401,   541,   364,   641,   641,   334,   334,
  345. -32768,-32768,-32768,-32768,-32768,   296,   158,   291,   200,   285,
  346. -32768,  1411,-32768,   294,-32768,   860,-32768,   262,    46,   298,
  347. -32768,   168,   983,-32768,   303,   288,-32768,   124,-32768,-32768,
  348.     25,-32768,-32768,-32768,   154,-32768,   225,   772,    -1,-32768,
  349. -32768,-32768,-32768,-32768,-32768,   297,-32768,  1445,-32768,-32768,
  350.    306,  1269,   335,   310,-32768,   310,-32768,-32768,   235,   235,
  351. -32768,   492,-32768,   772,-32768,  1269,-32768,-32768,    37,-32768,
  352.    327,-32768,   329,-32768,-32768,-32768,   323,-32768,-32768,-32768,
  353. -32768,    30,   112,     3,-32768,-32768,     3,-32768,-32768,   390,
  354. -32768,   386,   219,-32768,-32768,   193,   222,   116,-32768,   772,
  355.   1445,-32768,    25,   772,-32768,    25,-32768,  1445,  1269,   257,
  356.     97,   357,   359,   344,-32768,-32768,   345,   347,  1269,   380,
  357.    361,   367,  1203,   138,   408,-32768,   394,   372,  1035,   551,
  358. -32768,   413,-32768,-32768,   383,   978,-32768,-32768,-32768,   141,
  359. -32768,   882,    93,-32768,-32768,-32768,-32768,-32768,-32768,     2,
  360. -32768,-32768,-32768,  1445,-32768,-32768,  1269,   395,  1094,  1269,
  361.   1269,   430,-32768,-32768,-32768,-32768,   412,   414,-32768,   415,
  362. -32768,-32768,   610,   418,-32768,-32768,-32768,-32768,   691,   422,
  363.    112,-32768,-32768,   417,-32768,   750,   426,  1269,   467,   429,
  364.    431,-32768,  1094,-32768,-32768,   173,  1094,-32768,  1094,-32768,
  365. -32768,-32768,-32768,-32768,   447,-32768,-32768,-32768,  1094,-32768,
  366.     19,-32768,-32768,  1094,-32768,   454,  1269,  1094,-32768,   513,
  367.    468,-32768,  1094,  1269,   471,-32768,   474,    17,   469,-32768,
  368. -32768,-32768,   479,-32768,  1269,   513,   482,   513,   483,  1269,
  369.    485,   488,-32768,-32768,-32768,   489,-32768,   493,-32768,-32768,
  370.   1094,-32768,   545,   556,-32768
  371. };
  372.  
  373. static const short yypgoto[] = {-32768,
  374. -32768,-32768,-32768,   554,-32768,-32768,-32768,-32768,-32768,-32768,
  375. -32768,-32768,    -5,-32768,   -35,-32768,   402,   -31,-32768,-32768,
  376.    -33,  -104,   269,    18,  -166,     6,   515,    10,   -29,   398,
  377.      4,  -120,   300,   -36,   -75,   -65,-32768,-32768,-32768,  -204,
  378.    237,   -40,   -54,   209,   -11,   -32,-32768,-32768,-32768,-32768,
  379.   -185,    16,-32768,   387,   252,   486,   391,    92,   -62,    -8,
  380.    -91,  -144,   234,-32768,  -171,-32768,  -273,  -109,-32768,-32768,
  381.   -156,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  382. -32768,-32768,-32768,-32768,  -324,   133,-32768,   130,   358,-32768,
  383.   -175,-32768,-32768,-32768,   362,-32768,   286,-32768
  384. };
  385.  
  386.  
  387. #define    YYLAST        1515
  388.  
  389.  
  390. static const short yytable[] = {    73,
  391.     57,   186,    97,    29,    31,    33,    41,    19,    19,   263,
  392.    100,    20,    20,   262,   240,   281,   107,   274,   167,   171,
  393.    213,   192,   115,    48,   115,   323,    83,   121,    -1,   124,
  394.    126,   121,    36,   129,   127,   101,    43,    47,    79,   187,
  395.    132,    -2,   247,   117,   108,   117,    36,    54,    42,   466,
  396.    168,   450,   193,   177,   121,    79,    88,    79,   415,   381,
  397.    194,   416,   383,   332,    89,   420,   239,    26,    27,   107,
  398.    169,   467,    79,   451,   316,    24,    25,   122,    26,    27,
  399.     26,    27,    83,   312,   166,   212,   272,   129,    37,   129,
  400.    245,   160,   277,    34,   299,    36,   192,    38,   246,   168,
  401.    308,   218,   215,   216,   217,   108,   220,   221,   222,   223,
  402.    224,   225,   226,   227,   228,   229,   230,   231,   232,   233,
  403.    166,   238,   455,   271,   244,    28,    79,   247,    79,   382,
  404.    107,   269,   202,   205,   204,   206,    30,   316,    32,   249,
  405.     26,    27,    87,    36,   310,   476,   312,   168,   234,   235,
  406.     51,   325,   260,   386,   160,   158,    36,    92,   276,    35,
  407.    131,   283,    53,   283,   159,   371,   278,   240,    55,    88,
  408.     36,   310,   160,   372,   169,   115,   115,    89,   321,   410,
  409.    252,    56,   295,   322,   253,   311,    48,    84,   406,   315,
  410.    318,    85,   262,   108,   312,   412,   117,   117,    93,   265,
  411.    267,   188,   160,   407,   430,   189,   168,    94,    79,    79,
  412.    307,   430,   311,   377,   208,   107,   209,   134,   195,   370,
  413.    133,   312,    85,   325,   373,   299,   325,    36,   299,   160,
  414.    327,   406,   419,   164,    36,    92,   331,    58,   168,   121,
  415.    314,   317,    60,    56,   158,    61,   407,   252,   378,   173,
  416.    338,   253,   189,   159,   185,   328,    48,   295,   295,    36,
  417.     92,   160,   331,    62,   366,   199,   440,   104,   105,    37,
  418.    442,   198,   443,     9,    10,    11,    93,   379,    38,   212,
  419.    210,    85,   449,    67,    68,    94,    87,   452,    69,   282,
  420.    211,   456,    70,    71,   203,   294,   462,   207,   331,   283,
  421.     83,    93,   331,    88,   170,   214,   259,   384,   193,   270,
  422.     94,    89,   280,   392,   260,    86,   194,   397,   -26,   -26,
  423.    -26,   -26,   264,   273,   482,   252,   -26,   -26,   -26,   253,
  424.    152,   153,   289,   154,   155,   156,   414,   290,   245,   300,
  425.    291,    87,   -26,   157,   293,  -121,   246,   320,   398,   296,
  426.    297,   417,   309,   298,   218,   421,   304,   319,   169,   335,
  427.    196,   169,   337,   -22,   -22,   -22,   -22,   339,    88,   340,
  428.   -121,   -22,   -22,   -22,  -121,   -26,    89,   331,   149,   150,
  429.    151,   367,   435,   368,   331,   369,    87,   -22,   376,   -30,
  430.   -121,   -31,   441,     5,     6,     7,     8,   387,   390,   374,
  431.    391,     9,    10,    11,   145,   146,   147,   148,   149,   150,
  432.    151,   218,   393,    88,   399,  -121,   394,    13,   463,  -121,
  433.    -22,    89,   395,   103,   104,   105,   401,   402,   408,   471,
  434.      9,    10,    11,   178,   218,   -87,   -87,   -87,   -87,   -87,
  435.    -87,   -87,   409,   -87,   -87,   -87,   -87,   -87,   418,   -87,
  436.    -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,
  437.    -87,   -87,   422,     5,     6,     7,     8,   424,   426,   425,
  438.    -87,     9,    10,    11,   428,   -87,   -87,   -87,   431,   432,
  439.    434,   -87,   -87,   436,   437,   438,   -87,    13,   -87,   -87,
  440.    -87,   -87,   341,   -87,   342,   343,     6,     7,     8,    60,
  441.     56,   445,    61,     9,    10,    11,   344,   454,   345,   346,
  442.    347,   348,   349,   350,   351,   352,   353,   354,   355,    13,
  443.     62,   457,     5,   461,     7,   165,   464,   465,   468,    63,
  444.      9,    10,    11,   469,    64,    65,    66,   473,   475,   477,
  445.     67,    68,   478,   479,   484,    69,    13,   356,   480,    70,
  446.     71,   178,   212,   342,    27,   485,    23,   237,    60,    56,
  447.    359,    61,   102,   248,   326,   344,   380,   345,   346,   347,
  448.    348,   349,   350,   351,   352,   353,   354,   355,   411,    62,
  449.    144,   145,   146,   147,   148,   149,   150,   151,    63,   279,
  450.    286,   385,   403,    64,    65,    66,   201,   474,   472,    67,
  451.     68,     0,   305,   303,    69,   375,   356,   405,    70,    71,
  452.    178,   212,   342,    27,     0,     0,     0,    60,    56,     0,
  453.     61,     0,     0,     0,   344,     0,   345,   346,   347,   348,
  454.    349,   350,   351,   352,   353,   354,   355,     0,    62,     0,
  455.      5,    44,     7,    45,     0,     0,     0,    63,     9,    10,
  456.     11,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  457.      0,     0,     0,    69,    13,   356,  -206,    70,    71,   128,
  458.    212,    58,     5,     0,     7,    59,    60,    56,     0,    61,
  459.      9,    10,    11,   147,   148,   149,   150,   151,     0,     0,
  460.      0,   329,    46,    58,     0,     0,    13,    62,    60,    56,
  461.      0,    61,     0,     0,     0,     0,    63,     0,     0,     0,
  462.      0,    64,    65,    66,     0,     0,     0,    67,    68,    62,
  463.      0,     0,    69,     0,     0,     0,    70,    71,    63,   -75,
  464.      0,     0,     0,    64,    65,    66,     0,     0,     0,    67,
  465.     68,     0,     0,     0,    69,     0,     0,  -168,    70,    71,
  466.    329,   330,    58,     0,     0,     0,   112,    60,    56,     5,
  467.     61,     7,    59,     0,     0,     0,     0,     9,    10,    11,
  468.      0,     0,   329,     0,    58,     0,     0,     0,    62,    60,
  469.     56,     0,    61,    13,     0,     0,     0,    63,     0,     0,
  470.      0,     0,    64,    65,    66,     0,    58,     0,    67,    68,
  471.     62,    60,    56,    69,    61,     0,   433,    70,    71,    63,
  472.    330,   113,   114,     0,    64,    65,    66,     0,    58,     0,
  473.     67,    68,    62,    60,    56,    69,    61,     0,     0,    70,
  474.     71,    63,   330,     0,     0,     0,    64,    65,    66,     0,
  475.     58,     0,    67,    68,    62,    60,    56,    69,    61,     0,
  476.      0,    70,    71,    63,     0,     0,   176,     0,    64,    65,
  477.     66,     0,    58,     0,    67,    68,    62,    60,    56,    69,
  478.     61,     0,     0,    70,    71,    63,     0,     0,   243,     0,
  479.     64,    65,    66,     0,    58,     0,    67,    68,    62,    60,
  480.     56,    69,    61,     0,     0,    70,    71,    63,     0,     0,
  481.    275,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  482.     62,     0,     0,    69,     0,     0,     0,    70,    71,    63,
  483.      0,     0,   306,     0,    64,    65,    66,     0,     0,     0,
  484.     67,    68,     0,     0,     0,    69,     0,     0,     0,    70,
  485.     71,     0,   190,     0,   413,   -18,   -18,   -18,   -18,     5,
  486.      0,     7,   165,   -18,   -18,   -18,     0,     9,    10,    11,
  487.      0,     0,     0,     0,     0,     0,     0,     0,    87,   -18,
  488.      0,   178,  -121,    13,     5,     6,     7,     8,     0,     0,
  489.      0,     0,     9,    10,    11,    36,     5,    44,     7,    45,
  490.    158,     0,     0,     0,     9,    10,    11,  -121,    13,   159,
  491.      0,  -121,   -18,     0,     0,     0,     0,   160,     0,   137,
  492.     13,   138,   139,   140,   141,   142,   143,   144,   145,   146,
  493.    147,   148,   149,   150,   151,     0,     0,   316,     0,     0,
  494.      0,   -85,     0,     0,     0,     0,   312,   342,   343,     6,
  495.      7,     8,    60,    56,   160,    61,     9,    10,    11,   344,
  496.      0,   345,   346,   347,   348,   349,   350,   351,   352,   353,
  497.    354,   355,    13,    62,     0,     0,     0,     0,     0,     0,
  498.      0,     0,    63,     0,     0,     0,     0,    64,    65,    66,
  499.      0,     0,     0,    67,    68,     0,     0,     0,    69,     0,
  500.    356,     0,    70,    71,     0,   212,   342,    27,     0,     0,
  501.      0,    60,    56,     0,    61,     0,     0,     0,   344,     0,
  502.    345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
  503.    355,     0,    62,     0,    58,     0,     0,     0,     0,    60,
  504.     56,    63,    61,     0,     0,     0,    64,    65,    66,     0,
  505.      0,     0,    67,    68,     0,     0,     0,    69,     0,   356,
  506.     62,    70,    71,     0,   212,     0,     0,     0,     0,    63,
  507.      0,     0,     0,     0,    64,    65,    66,     0,     0,     0,
  508.     67,    68,     0,     0,     0,    69,     0,     0,     0,    70,
  509.     71,     0,   294,    58,     5,     0,     7,    59,    60,    56,
  510.      0,    61,     9,    10,    11,   142,   143,   144,   145,   146,
  511.    147,   148,   149,   150,   151,    58,     0,     0,    13,    62,
  512.     60,    56,     0,    61,     0,     0,     0,     0,    63,     0,
  513.      0,     0,     0,    64,    65,    66,     0,    58,     0,    67,
  514.     68,    62,    60,    56,    69,    61,     0,     0,    70,    71,
  515.     63,     0,     0,     0,     0,    64,    65,    66,     0,    58,
  516.      0,    67,    68,    62,    60,    56,    69,    61,   396,     0,
  517.     70,    71,    63,     0,     0,     0,     0,    64,    65,    66,
  518.      0,    58,     0,    67,    68,    62,    60,    56,   123,    61,
  519.      0,     0,    70,    71,    63,     0,     0,     0,     0,    64,
  520.     65,    66,     0,     0,     0,    67,    68,    62,     0,     0,
  521.    125,     0,     0,     0,    70,    71,    63,     0,     0,     0,
  522.      0,    64,    65,    66,     0,     0,     0,    67,    68,     0,
  523.      0,     0,    69,     0,     0,   112,    70,    71,     5,   112,
  524.      7,    59,     5,     0,     7,    59,     9,    10,    11,     0,
  525.      9,    10,    11,     0,     0,     0,     0,     0,   112,     0,
  526.      0,     5,    13,     7,    59,     0,    13,     0,     0,     9,
  527.     10,    11,     0,     0,     0,     4,     0,   -91,     5,     6,
  528.      7,     8,     0,     0,     0,    13,     9,    10,    11,     0,
  529.    113,   119,     0,     0,   113,   287,     0,     0,     0,     0,
  530.      0,    12,    13,     0,   250,     0,   251,     5,     6,     7,
  531.      8,     0,     0,   113,   288,     9,    10,    11,     0,   -91,
  532.      0,   301,     0,     0,     5,     6,     7,     8,   -91,     0,
  533.     14,    13,     9,    10,    11,     5,    44,     7,    45,     0,
  534.      0,     0,     0,     9,    10,    11,     0,     0,    13,   143,
  535.    144,   145,   146,   147,   148,   149,   150,   151,  -267,    13,
  536.    139,   140,   141,   142,   143,   144,   145,   146,   147,   148,
  537.    149,   150,   151,     0,     0,  -267,     0,     0,     0,     0,
  538.      0,     0,     0,     0,   135,   136,   137,   266,   138,   139,
  539.    140,   141,   142,   143,   144,   145,   146,   147,   148,   149,
  540.    150,   151,   140,   141,   142,   143,   144,   145,   146,   147,
  541.    148,   149,   150,   151,   141,   142,   143,   144,   145,   146,
  542.    147,   148,   149,   150,   151
  543. };
  544.  
  545. static const short yycheck[] = {    35,
  546.     34,    93,    43,     9,    10,    11,    18,     2,     3,   181,
  547.     47,     2,     3,   180,   159,   201,    49,   193,    81,    85,
  548.    130,    97,    52,    20,    54,     1,    38,     9,     0,    61,
  549.     62,     9,     3,    69,    66,    47,    19,    20,    35,    94,
  550.     72,     0,   163,    52,    50,    54,     3,    32,    56,    33,
  551.      7,    33,    54,    89,     9,    52,    54,    54,    57,   333,
  552.     62,    60,   336,   268,    62,   390,   158,     3,     4,   102,
  553.     82,    55,    69,    55,    45,    56,    57,    55,     3,     4,
  554.      3,     4,    94,    54,    81,    61,   191,   123,    45,   125,
  555.     54,    62,   197,    54,   239,     3,   172,    54,    62,     7,
  556.     55,   137,   134,   135,   136,   111,   138,   139,   140,   141,
  557.    142,   143,   144,   145,   146,   147,   148,   149,   150,   151,
  558.    117,   157,   447,   189,   160,    61,   123,   248,   125,   334,
  559.    163,   186,   115,   118,   117,   120,    61,    45,    61,   173,
  560.      3,     4,    27,     3,     4,   470,    54,     7,   154,   155,
  561.     61,   261,    56,    57,    62,    45,     3,     4,   194,    54,
  562.     69,   202,    61,   204,    54,    54,   198,   312,    61,    54,
  563.      3,     4,    62,    62,   186,   205,   206,    62,    55,   365,
  564.    175,     9,   214,    60,   175,    45,   183,    56,   360,   252,
  565.    253,    60,   359,   199,    54,   371,   205,   206,    45,   182,
  566.    183,    56,    62,   360,   409,    60,     7,    54,   205,   206,
  567.    246,   416,    45,   323,   123,   248,   125,    60,    56,   311,
  568.     55,    54,    60,   333,   316,   370,   336,     3,   373,    62,
  569.    267,   403,   389,    55,     3,     4,   268,     3,     7,     9,
  570.    252,   253,     8,     9,    45,    11,   403,   242,    56,    54,
  571.    282,   242,    60,    54,    31,   267,   253,   289,   290,     3,
  572.      4,    62,   294,    29,   296,    60,   423,     6,     7,    45,
  573.    427,    31,   429,    12,    13,    14,    45,    56,    54,    61,
  574.     55,    60,   439,    49,    50,    54,    27,   444,    54,    33,
  575.     55,   448,    58,    59,    56,    61,   453,    56,   330,   340,
  576.    312,    45,   334,    54,    55,    55,    63,   339,    54,    55,
  577.     54,    62,    57,   349,    56,     1,    62,   353,     4,     5,
  578.      6,     7,    56,    31,   481,   320,    12,    13,    14,   320,
  579.     49,    50,    55,    52,    53,    54,   372,    55,    54,    55,
  580.     57,    27,    28,    62,    55,    31,    62,    60,   354,    33,
  581.     55,   387,    55,    63,   390,   391,    63,    55,   370,    63,
  582.      1,   373,    57,     4,     5,     6,     7,    33,    54,    60,
  583.     56,    12,    13,    14,    60,    61,    62,   409,    45,    46,
  584.     47,    55,   418,    55,   416,    63,    27,    28,     3,    33,
  585.     31,    33,   426,     4,     5,     6,     7,    54,    54,    10,
  586.     54,    12,    13,    14,    41,    42,    43,    44,    45,    46,
  587.     47,   447,    33,    54,     7,    56,    56,    28,   454,    60,
  588.     61,    62,    56,     5,     6,     7,    33,    56,    16,   465,
  589.     12,    13,    14,     1,   470,     3,     4,     5,     6,     7,
  590.      8,     9,    60,    11,    12,    13,    14,    15,    54,    17,
  591.     18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
  592.     28,    29,    33,     4,     5,     6,     7,    56,    54,    56,
  593.     38,    12,    13,    14,    57,    43,    44,    45,    57,    63,
  594.     55,    49,    50,    17,    56,    55,    54,    28,    56,    57,
  595.     58,    59,     1,    61,     3,     4,     5,     6,     7,     8,
  596.      9,    55,    11,    12,    13,    14,    15,    54,    17,    18,
  597.     19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
  598.     29,     9,     4,    56,     6,     7,    56,    54,    60,    38,
  599.     12,    13,    14,    55,    43,    44,    45,    56,    56,    55,
  600.     49,    50,    55,    55,     0,    54,    28,    56,    56,    58,
  601.     59,     1,    61,     3,     4,     0,     3,   156,     8,     9,
  602.    292,    11,    48,   166,   265,    15,   330,    17,    18,    19,
  603.     20,    21,    22,    23,    24,    25,    26,    27,   370,    29,
  604.     40,    41,    42,    43,    44,    45,    46,    47,    38,   199,
  605.    204,   340,   359,    43,    44,    45,   111,   468,   466,    49,
  606.     50,    -1,   245,   242,    54,   320,    56,    57,    58,    59,
  607.      1,    61,     3,     4,    -1,    -1,    -1,     8,     9,    -1,
  608.     11,    -1,    -1,    -1,    15,    -1,    17,    18,    19,    20,
  609.     21,    22,    23,    24,    25,    26,    27,    -1,    29,    -1,
  610.      4,     5,     6,     7,    -1,    -1,    -1,    38,    12,    13,
  611.     14,    -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,
  612.     -1,    -1,    -1,    54,    28,    56,    57,    58,    59,     1,
  613.     61,     3,     4,    -1,     6,     7,     8,     9,    -1,    11,
  614.     12,    13,    14,    43,    44,    45,    46,    47,    -1,    -1,
  615.     -1,     1,    56,     3,    -1,    -1,    28,    29,     8,     9,
  616.     -1,    11,    -1,    -1,    -1,    -1,    38,    -1,    -1,    -1,
  617.     -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,    29,
  618.     -1,    -1,    54,    -1,    -1,    -1,    58,    59,    38,    61,
  619.     -1,    -1,    -1,    43,    44,    45,    -1,    -1,    -1,    49,
  620.     50,    -1,    -1,    -1,    54,    -1,    -1,    57,    58,    59,
  621.      1,    61,     3,    -1,    -1,    -1,     1,     8,     9,     4,
  622.     11,     6,     7,    -1,    -1,    -1,    -1,    12,    13,    14,
  623.     -1,    -1,     1,    -1,     3,    -1,    -1,    -1,    29,     8,
  624.      9,    -1,    11,    28,    -1,    -1,    -1,    38,    -1,    -1,
  625.     -1,    -1,    43,    44,    45,    -1,     3,    -1,    49,    50,
  626.     29,     8,     9,    54,    11,    -1,    57,    58,    59,    38,
  627.     61,    56,    57,    -1,    43,    44,    45,    -1,     3,    -1,
  628.     49,    50,    29,     8,     9,    54,    11,    -1,    -1,    58,
  629.     59,    38,    61,    -1,    -1,    -1,    43,    44,    45,    -1,
  630.      3,    -1,    49,    50,    29,     8,     9,    54,    11,    -1,
  631.     -1,    58,    59,    38,    -1,    -1,    63,    -1,    43,    44,
  632.     45,    -1,     3,    -1,    49,    50,    29,     8,     9,    54,
  633.     11,    -1,    -1,    58,    59,    38,    -1,    -1,    63,    -1,
  634.     43,    44,    45,    -1,     3,    -1,    49,    50,    29,     8,
  635.      9,    54,    11,    -1,    -1,    58,    59,    38,    -1,    -1,
  636.     63,    -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,
  637.     29,    -1,    -1,    54,    -1,    -1,    -1,    58,    59,    38,
  638.     -1,    -1,    63,    -1,    43,    44,    45,    -1,    -1,    -1,
  639.     49,    50,    -1,    -1,    -1,    54,    -1,    -1,    -1,    58,
  640.     59,    -1,     1,    -1,    63,     4,     5,     6,     7,     4,
  641.     -1,     6,     7,    12,    13,    14,    -1,    12,    13,    14,
  642.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    27,    28,
  643.     -1,     1,    31,    28,     4,     5,     6,     7,    -1,    -1,
  644.     -1,    -1,    12,    13,    14,     3,     4,     5,     6,     7,
  645.     45,    -1,    -1,    -1,    12,    13,    14,    56,    28,    54,
  646.     -1,    60,    61,    -1,    -1,    -1,    -1,    62,    -1,    32,
  647.     28,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  648.     43,    44,    45,    46,    47,    -1,    -1,    45,    -1,    -1,
  649.     -1,    61,    -1,    -1,    -1,    -1,    54,     3,     4,     5,
  650.      6,     7,     8,     9,    62,    11,    12,    13,    14,    15,
  651.     -1,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  652.     26,    27,    28,    29,    -1,    -1,    -1,    -1,    -1,    -1,
  653.     -1,    -1,    38,    -1,    -1,    -1,    -1,    43,    44,    45,
  654.     -1,    -1,    -1,    49,    50,    -1,    -1,    -1,    54,    -1,
  655.     56,    -1,    58,    59,    -1,    61,     3,     4,    -1,    -1,
  656.     -1,     8,     9,    -1,    11,    -1,    -1,    -1,    15,    -1,
  657.     17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  658.     27,    -1,    29,    -1,     3,    -1,    -1,    -1,    -1,     8,
  659.      9,    38,    11,    -1,    -1,    -1,    43,    44,    45,    -1,
  660.     -1,    -1,    49,    50,    -1,    -1,    -1,    54,    -1,    56,
  661.     29,    58,    59,    -1,    61,    -1,    -1,    -1,    -1,    38,
  662.     -1,    -1,    -1,    -1,    43,    44,    45,    -1,    -1,    -1,
  663.     49,    50,    -1,    -1,    -1,    54,    -1,    -1,    -1,    58,
  664.     59,    -1,    61,     3,     4,    -1,     6,     7,     8,     9,
  665.     -1,    11,    12,    13,    14,    38,    39,    40,    41,    42,
  666.     43,    44,    45,    46,    47,     3,    -1,    -1,    28,    29,
  667.      8,     9,    -1,    11,    -1,    -1,    -1,    -1,    38,    -1,
  668.     -1,    -1,    -1,    43,    44,    45,    -1,     3,    -1,    49,
  669.     50,    29,     8,     9,    54,    11,    -1,    -1,    58,    59,
  670.     38,    -1,    -1,    -1,    -1,    43,    44,    45,    -1,     3,
  671.     -1,    49,    50,    29,     8,     9,    54,    11,    56,    -1,
  672.     58,    59,    38,    -1,    -1,    -1,    -1,    43,    44,    45,
  673.     -1,     3,    -1,    49,    50,    29,     8,     9,    54,    11,
  674.     -1,    -1,    58,    59,    38,    -1,    -1,    -1,    -1,    43,
  675.     44,    45,    -1,    -1,    -1,    49,    50,    29,    -1,    -1,
  676.     54,    -1,    -1,    -1,    58,    59,    38,    -1,    -1,    -1,
  677.     -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,    -1,
  678.     -1,    -1,    54,    -1,    -1,     1,    58,    59,     4,     1,
  679.      6,     7,     4,    -1,     6,     7,    12,    13,    14,    -1,
  680.     12,    13,    14,    -1,    -1,    -1,    -1,    -1,     1,    -1,
  681.     -1,     4,    28,     6,     7,    -1,    28,    -1,    -1,    12,
  682.     13,    14,    -1,    -1,    -1,     1,    -1,     3,     4,     5,
  683.      6,     7,    -1,    -1,    -1,    28,    12,    13,    14,    -1,
  684.     56,    57,    -1,    -1,    56,    57,    -1,    -1,    -1,    -1,
  685.     -1,    27,    28,    -1,     1,    -1,     3,     4,     5,     6,
  686.      7,    -1,    -1,    56,    57,    12,    13,    14,    -1,    45,
  687.     -1,     1,    -1,    -1,     4,     5,     6,     7,    54,    -1,
  688.     56,    28,    12,    13,    14,     4,     5,     6,     7,    -1,
  689.     -1,    -1,    -1,    12,    13,    14,    -1,    -1,    28,    39,
  690.     40,    41,    42,    43,    44,    45,    46,    47,    55,    28,
  691.     35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
  692.     45,    46,    47,    -1,    -1,    55,    -1,    -1,    -1,    -1,
  693.     -1,    -1,    -1,    -1,    30,    31,    32,    56,    34,    35,
  694.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  695.     46,    47,    36,    37,    38,    39,    40,    41,    42,    43,
  696.     44,    45,    46,    47,    37,    38,    39,    40,    41,    42,
  697.     43,    44,    45,    46,    47
  698. };
  699. #define YYPURE 1
  700.  
  701. #line 2 "bison.simple"
  702.  
  703. /* Skeleton output parser for bison,
  704.    copyright (C) 1984 Bob Corbett and Richard Stallman
  705.  
  706.                NO WARRANTY
  707.  
  708.   BECAUSE THIS PROGRAM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY
  709. NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
  710. WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC,
  711. RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE THIS PROGRAM "AS IS"
  712. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  713. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  714. FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY
  715. AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
  716. DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
  717. CORRECTION.
  718.  
  719.  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M.
  720. STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., AND/OR ANY OTHER PARTY
  721. WHO MAY MODIFY AND REDISTRIBUTE THIS PROGRAM AS PERMITTED BELOW, BE
  722. LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR
  723. OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
  724. USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  725. DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR
  726. A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) THIS
  727. PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
  728. DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  729.  
  730.         GENERAL PUBLIC LICENSE TO COPY
  731.  
  732.   1. You may copy and distribute verbatim copies of this source file
  733. as you receive it, in any medium, provided that you conspicuously and
  734. appropriately publish on each copy a valid copyright notice "Copyright
  735. (C) 1985 Free Software Foundation, Inc."; and include following the
  736. copyright notice a verbatim copy of the above disclaimer of warranty
  737. and of this License.  You may charge a distribution fee for the
  738. physical act of transferring a copy.
  739.  
  740.   2. You may modify your copy or copies of this source file or
  741. any portion of it, and copy and distribute such modifications under
  742. the terms of Paragraph 1 above, provided that you also do the following:
  743.  
  744.     a) cause the modified files to carry prominent notices stating
  745.     that you changed the files and the date of any change; and
  746.  
  747.     b) cause the whole of any work that you distribute or publish,
  748.     that in whole or in part contains or is a derivative of this
  749.     program or any part thereof, to be licensed at no charge to all
  750.     third parties on terms identical to those contained in this
  751.     License Agreement (except that you may choose to grant more extensive
  752.     warranty protection to some or all third parties, at your option).
  753.  
  754.     c) You may charge a distribution fee for the physical act of
  755.     transferring a copy, and you may at your option offer warranty
  756.     protection in exchange for a fee.
  757.  
  758. Mere aggregation of another unrelated program with this program (or its
  759. derivative) on a volume of a storage or distribution medium does not bring
  760. the other program under the scope of these terms.
  761.  
  762.   3. You may copy and distribute this program (or a portion or derivative
  763. of it, under Paragraph 2) in object code or executable form under the terms
  764. of Paragraphs 1 and 2 above provided that you also do one of the following:
  765.  
  766.     a) accompany it with the complete corresponding machine-readable
  767.     source code, which must be distributed under the terms of
  768.     Paragraphs 1 and 2 above; or,
  769.  
  770.     b) accompany it with a written offer, valid for at least three
  771.     years, to give any third party free (except for a nominal
  772.     shipping charge) a complete machine-readable copy of the
  773.     corresponding source code, to be distributed under the terms of
  774.     Paragraphs 1 and 2 above; or,
  775.  
  776.     c) accompany it with the information you received as to where the
  777.     corresponding source code may be obtained.  (This alternative is
  778.     allowed only for noncommercial distribution and only if you
  779.     received the program in object code or executable form alone.)
  780.  
  781. For an executable file, complete source code means all the source code for
  782. all modules it contains; but, as a special exception, it need not include
  783. source code for modules which are standard libraries that accompany the
  784. operating system on which the executable file runs.
  785.  
  786.   4. You may not copy, sublicense, distribute or transfer this program
  787. except as expressly provided under this License Agreement.  Any attempt
  788. otherwise to copy, sublicense, distribute or transfer this program is void and
  789. your rights to use the program under this License agreement shall be
  790. automatically terminated.  However, parties who have received computer
  791. software programs from you with this License Agreement will not have
  792. their licenses terminated so long as such parties remain in full compliance.
  793.  
  794.   5. If you wish to incorporate parts of this program into other free
  795. programs whose distribution conditions are different, write to the Free
  796. Software Foundation at 675 Mass Ave, Cambridge, MA 02139.  We have not yet
  797. worked out a simple rule that can be stated here, but we will often permit
  798. this.  We will be guided by the two goals of preserving the free status of
  799. all derivatives of our free software and of promoting the sharing and reuse of
  800. software.
  801.  
  802.  
  803. In other words, you are welcome to use, share and improve this program.
  804. You are forbidden to forbid anyone else to use, share and improve
  805. what you give them.   Help stamp out software-hoarding!  */
  806.  
  807. /* This is the parser code that is written into each bison parser
  808.   when the %semantic_parser declaration is not specified in the grammar.
  809.   It was written by Richard Stallman by simplifying the hairy parser
  810.   used when %semantic_parser is specified.  */
  811.  
  812. /* Note: there must be only one dollar sign in this file.
  813.    It is replaced by the list of actions, each action
  814.    as one case of the switch.  */
  815.  
  816. #define yyerrok        (yyerrstatus = 0)
  817. #define yyclearin    (yychar = YYEMPTY)
  818. #define YYEMPTY        -2
  819. #define YYEOF        0
  820. #define YYFAIL        goto yyerrlab;
  821.  
  822. #define YYTERROR    1
  823.  
  824. #ifndef YYIMPURE
  825. #define YYLEX        yylex()
  826. #endif
  827.  
  828. #ifndef YYPURE
  829. #define YYLEX        yylex(&yylval, &yylloc)
  830. #endif
  831.  
  832. /* If nonreentrant, generate the variables here */
  833.  
  834. #ifndef YYIMPURE
  835.  
  836. int    yychar;            /*  the lookahead symbol        */
  837. YYSTYPE    yylval;            /*  the semantic value of the        */
  838.                 /*  lookahead symbol            */
  839.  
  840. YYLTYPE yylloc;            /*  location data for the lookahead    */
  841.                 /*  symbol                */
  842.  
  843. #ifdef YYDEBUG
  844. int yydebug = 0;        /*  nonzero means print parse trace    */
  845. #endif
  846.  
  847. #endif  /* YYIMPURE */
  848.  
  849.  
  850. /*  YYMAXDEPTH indicates the initial size of the parser's stacks    */
  851.  
  852. #ifndef    YYMAXDEPTH
  853. #define YYMAXDEPTH 200
  854. #endif
  855.  
  856. /*  YYMAXLIMIT is the maximum size the stacks can grow to
  857.     (effective only if the built-in stack extension method is used).  */
  858.  
  859. #ifndef YYMAXLIMIT
  860. #define YYMAXLIMIT 10000
  861. #endif
  862.  
  863.  
  864. #line 87 "bison.simple"
  865. int
  866. yyparse()
  867. {
  868.   register int yystate;
  869.   register int yyn;
  870.   register short *yyssp;
  871.   register YYSTYPE *yyvsp;
  872.   YYLTYPE *yylsp;
  873.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  874.   int yychar1;        /*  lookahead token as an internal (translated) token number */
  875.  
  876.   short    yyssa[YYMAXDEPTH];    /*  the state stack            */
  877.   YYSTYPE yyvsa[YYMAXDEPTH];    /*  the semantic value stack        */
  878.   YYLTYPE yylsa[YYMAXDEPTH];    /*  the location stack            */
  879.  
  880.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  881.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  882.   YYLTYPE *yyls = yylsa;
  883.  
  884.   int yymaxdepth = YYMAXDEPTH;
  885.  
  886. #ifndef YYPURE
  887.  
  888.   int yychar;
  889.   YYSTYPE yylval;
  890.   YYLTYPE yylloc;
  891.  
  892. #ifdef YYDEBUG
  893.   extern int yydebug;
  894. #endif
  895.  
  896. #endif
  897.  
  898.  
  899.   YYSTYPE yyval;        /*  the variable used to return        */
  900.                 /*  semantic values from the action    */
  901.                 /*  routines                */
  902.  
  903.   int yylen;
  904.  
  905. #ifdef YYDEBUG
  906.   if (yydebug)
  907.     fprintf(stderr, "Starting parse\n");
  908. #endif
  909.  
  910.   yystate = 0;
  911.   yyerrstatus = 0;
  912.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  913.  
  914.   /* Initialize stack pointers.
  915.      Waste one element of value and location stack
  916.      so that they stay on the same level as the state stack.  */
  917.  
  918.   yyssp = yyss - 1;
  919.   yyvsp = yyvs;
  920.   yylsp = yyls;
  921.  
  922. /* Push a new state, which is found in  yystate  .  */
  923. /* In all cases, when you get here, the value and location stacks
  924.    have just been pushed. so pushing a state here evens the stacks.  */
  925. yynewstate:
  926.  
  927.   *++yyssp = yystate;
  928.  
  929.   if (yyssp >= yyss + yymaxdepth - 1)
  930.     {
  931.       /* Give user a chance to reallocate the stack */
  932.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  933.       YYSTYPE *yyvs1 = yyvs;
  934.       YYLTYPE *yyls1 = yyls;
  935.       short *yyss1 = yyss;
  936.  
  937.       /* Get the current used size of the three stacks, in elements.  */
  938.       int size = yyssp - yyss + 1;
  939.  
  940. #ifdef yyoverflow
  941.       /* Each stack pointer address is followed by the size of
  942.      the data in use in that stack, in bytes.  */
  943.       yyoverflow("parser stack overflow",
  944.          &yyss1, size * sizeof (*yyssp),
  945.          &yyvs1, size * sizeof (*yyvsp),
  946.          &yyls1, size * sizeof (*yylsp),
  947.          &yymaxdepth);
  948.  
  949.       yyss = yyss1; yyvs = yyvs1; yyls = yyls1;
  950. #else /* no yyoverflow */
  951.       /* Extend the stack our own way.  */
  952.       if (yymaxdepth >= YYMAXLIMIT)
  953.     yyerror("parser stack overflow");
  954.       yymaxdepth *= 2;
  955.       if (yymaxdepth > YYMAXLIMIT)
  956.     yymaxdepth = YYMAXLIMIT;
  957.       yyss = (short *) alloca (yymaxdepth * sizeof (*yyssp));
  958.       bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  959.       yyls = (YYLTYPE *) alloca (yymaxdepth * sizeof (*yylsp));
  960.       bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  961.       yyvs = (YYSTYPE *) alloca (yymaxdepth * sizeof (*yyvsp));
  962.       bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  963. #endif /* no yyoverflow */
  964.  
  965.       yyssp = yyss + size - 1;
  966.       yylsp = yyls + size - 1;
  967.       yyvsp = yyvs + size - 1;
  968.  
  969. #ifdef YYDEBUG
  970.       if (yydebug)
  971.     fprintf(stderr, "Stack size increased to %d\n", yymaxdepth);
  972. #endif
  973.  
  974.       if (yyssp >= yyss + yymaxdepth - 1)
  975.     YYERROR;
  976.     }
  977.  
  978. #ifdef YYDEBUG
  979.   if (yydebug)
  980.     fprintf(stderr, "Entering state %d\n", yystate);
  981. #endif
  982.  
  983. /* Do appropriate processing given the current state.  */
  984. /* Read a lookahead token if we need one and don't already have one.  */
  985. yyresume:
  986.  
  987.   /* First try to decide what to do without reference to lookahead token.  */
  988.  
  989.   yyn = yypact[yystate];
  990.   if (yyn == YYFLAG)
  991.     goto yydefault;
  992.  
  993.   /* Not known => get a lookahead token if don't already have one.  */
  994.  
  995.   /* yychar is either YYEMPTY or YYEOF
  996.      or a valid token in external form.  */
  997.  
  998.   if (yychar == YYEMPTY)
  999.     {
  1000. #ifdef YYDEBUG
  1001.       if (yydebug)
  1002.     fprintf(stderr, "Reading a token: ");
  1003. #endif
  1004.       yychar = YYLEX;
  1005.     }
  1006.  
  1007.   /* Convert token to internal form (in yychar1) for indexing tables with */
  1008.  
  1009.   if (yychar <= 0)        /* This means end of input. */
  1010.     {
  1011.       yychar1 = 0;
  1012.       yychar = YYEOF;        /* Don't call YYLEX any more */
  1013.  
  1014. #ifdef YYDEBUG
  1015.       if (yydebug)
  1016.     fprintf(stderr, "Now at end of input.\n");
  1017. #endif
  1018.     }
  1019.   else
  1020.     {
  1021.       yychar1 = YYTRANSLATE(yychar);
  1022.  
  1023. #ifdef YYDEBUG
  1024.       if (yydebug)
  1025.     fprintf(stderr, "Next token is %d (%s)\n", yychar, yytname[yychar1]);
  1026. #endif
  1027.     }
  1028.  
  1029.   yyn += yychar1;
  1030.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  1031.     goto yydefault;
  1032.  
  1033.   yyn = yytable[yyn];
  1034.  
  1035.   /* yyn is what to do for this token type in this state.
  1036.      Negative => reduce, -yyn is rule number.
  1037.      Positive => shift, yyn is new state.
  1038.        New state is final state => don't bother to shift,
  1039.        just return success.
  1040.      0, or most negative number => error.  */
  1041.  
  1042.   if (yyn < 0)
  1043.     {
  1044.       if (yyn == YYFLAG)
  1045.     goto yyerrlab;
  1046.       yyn = -yyn;
  1047.       goto yyreduce;
  1048.     }
  1049.   else if (yyn == 0)
  1050.     goto yyerrlab;
  1051.  
  1052.   if (yyn == YYFINAL)
  1053.     YYACCEPT;
  1054.  
  1055.   /* Shift the lookahead token.  */
  1056.  
  1057. #ifdef YYDEBUG
  1058.   if (yydebug)
  1059.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1060. #endif
  1061.  
  1062.   /* Discard the token being shifted unless it is eof.  */
  1063.   if (yychar != YYEOF)
  1064.     yychar = YYEMPTY;
  1065.  
  1066.   *++yyvsp = yylval;
  1067.   *++yylsp = yylloc;
  1068.  
  1069.   /* count tokens shifted since error; after three, turn off error status.  */
  1070.   if (yyerrstatus) yyerrstatus--;
  1071.  
  1072.   yystate = yyn;
  1073.   goto yynewstate;
  1074.  
  1075. /* Do the default action for the current state.  */
  1076. yydefault:
  1077.  
  1078.   yyn = yydefact[yystate];
  1079.   if (yyn == 0)
  1080.     goto yyerrlab;
  1081.  
  1082. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1083. yyreduce:
  1084.   yylen = yyr2[yyn];
  1085.   yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1086.  
  1087. #ifdef YYDEBUG
  1088.   if (yydebug)
  1089.     {
  1090.       if (yylen == 1)
  1091.     fprintf (stderr, "Reducing 1 value via line %d, ",
  1092.          yyrline[yyn]);
  1093.       else
  1094.     fprintf (stderr, "Reducing %d values via line %d, ",
  1095.          yylen, yyrline[yyn]);
  1096.     }
  1097. #endif
  1098.  
  1099.  
  1100.   switch (yyn) {
  1101.  
  1102. case 3:
  1103. #line 183 "parse.y"
  1104. {yyval.ttype = NULL_TREE; ;
  1105.     break;}
  1106. case 5:
  1107. #line 184 "parse.y"
  1108. {yyval.ttype = NULL_TREE; ;
  1109.     break;}
  1110. case 9:
  1111. #line 191 "parse.y"
  1112. { if (pedantic)
  1113.             warning ("ANSI C forbids use of `asm' keyword");
  1114.           if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  1115.           assemble_asm (yyvsp[-2].ttype); ;
  1116.     break;}
  1117. case 10:
  1118. #line 199 "parse.y"
  1119. { if (pedantic)
  1120.             error ("ANSI C forbids data definition lacking type or storage class");
  1121.           else
  1122.             warning ("data definition lacks type or storage class"); ;
  1123.     break;}
  1124. case 11:
  1125. #line 204 "parse.y"
  1126. {;
  1127.     break;}
  1128. case 12:
  1129. #line 206 "parse.y"
  1130. {;
  1131.     break;}
  1132. case 13:
  1133. #line 208 "parse.y"
  1134. { error ("empty declaration"); ;
  1135.     break;}
  1136. case 14:
  1137. #line 210 "parse.y"
  1138. { shadow_tag (yyvsp[-1].ttype); ;
  1139.     break;}
  1140. case 18:
  1141. #line 218 "parse.y"
  1142. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1143.             YYFAIL;
  1144.           reinit_parse_for_function (); ;
  1145.     break;}
  1146. case 19:
  1147. #line 222 "parse.y"
  1148. { store_parm_decls (); ;
  1149.     break;}
  1150. case 20:
  1151. #line 224 "parse.y"
  1152. { finish_function (); ;
  1153.     break;}
  1154. case 21:
  1155. #line 226 "parse.y"
  1156. { ;
  1157.     break;}
  1158. case 22:
  1159. #line 228 "parse.y"
  1160. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1161.             YYFAIL;
  1162.           reinit_parse_for_function (); ;
  1163.     break;}
  1164. case 23:
  1165. #line 232 "parse.y"
  1166. { store_parm_decls (); ;
  1167.     break;}
  1168. case 24:
  1169. #line 234 "parse.y"
  1170. { finish_function (); ;
  1171.     break;}
  1172. case 25:
  1173. #line 236 "parse.y"
  1174. { ;
  1175.     break;}
  1176. case 26:
  1177. #line 238 "parse.y"
  1178. { if (! start_function (0, yyvsp[0].ttype))
  1179.             YYFAIL;
  1180.           reinit_parse_for_function (); ;
  1181.     break;}
  1182. case 27:
  1183. #line 242 "parse.y"
  1184. { store_parm_decls (); ;
  1185.     break;}
  1186. case 28:
  1187. #line 244 "parse.y"
  1188. { finish_function (); ;
  1189.     break;}
  1190. case 29:
  1191. #line 246 "parse.y"
  1192. { ;
  1193.     break;}
  1194. case 32:
  1195. #line 255 "parse.y"
  1196. { yyval.code = ADDR_EXPR; ;
  1197.     break;}
  1198. case 33:
  1199. #line 257 "parse.y"
  1200. { yyval.code = NEGATE_EXPR; ;
  1201.     break;}
  1202. case 34:
  1203. #line 259 "parse.y"
  1204. { yyval.code = CONVERT_EXPR; ;
  1205.     break;}
  1206. case 35:
  1207. #line 261 "parse.y"
  1208. { yyval.code = PREINCREMENT_EXPR; ;
  1209.     break;}
  1210. case 36:
  1211. #line 263 "parse.y"
  1212. { yyval.code = PREDECREMENT_EXPR; ;
  1213.     break;}
  1214. case 37:
  1215. #line 265 "parse.y"
  1216. { yyval.code = BIT_NOT_EXPR; ;
  1217.     break;}
  1218. case 38:
  1219. #line 267 "parse.y"
  1220. { yyval.code = TRUTH_NOT_EXPR; ;
  1221.     break;}
  1222. case 39:
  1223. #line 271 "parse.y"
  1224. { yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
  1225.     break;}
  1226. case 40:
  1227. #line 276 "parse.y"
  1228. { yyval.ttype = NULL_TREE; ;
  1229.     break;}
  1230. case 42:
  1231. #line 282 "parse.y"
  1232. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1233.     break;}
  1234. case 43:
  1235. #line 284 "parse.y"
  1236. { chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  1237.     break;}
  1238. case 45:
  1239. #line 290 "parse.y"
  1240. { yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
  1241.     break;}
  1242. case 46:
  1243. #line 292 "parse.y"
  1244. { yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); ;
  1245.     break;}
  1246. case 47:
  1247. #line 294 "parse.y"
  1248. { tree type = groktypename (yyvsp[-2].ttype);
  1249.           yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
  1250.     break;}
  1251. case 48:
  1252. #line 297 "parse.y"
  1253. { tree type = groktypename (yyvsp[-5].ttype);
  1254.           if (pedantic)
  1255.             warning ("ANSI C forbids constructor-expressions");
  1256.           yyval.ttype = digest_init (type, build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)), 0);
  1257.           if (TREE_CODE (type) == ARRAY_TYPE && TYPE_SIZE (type) == 0)
  1258.             {
  1259.               int failure = complete_array_type (type, yyval.ttype, 1);
  1260.               if (failure)
  1261.             abort ();
  1262.             }
  1263.         ;
  1264.     break;}
  1265. case 49:
  1266. #line 309 "parse.y"
  1267. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1268.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1269.             error ("sizeof applied to a bit-field");
  1270.           yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
  1271.     break;}
  1272. case 50:
  1273. #line 314 "parse.y"
  1274. { yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
  1275.     break;}
  1276. case 51:
  1277. #line 316 "parse.y"
  1278. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1279.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1280.             error ("__alignof applied to a bit-field");
  1281.           yyval.ttype = c_alignof (TREE_TYPE (yyvsp[0].ttype)); ;
  1282.     break;}
  1283. case 52:
  1284. #line 321 "parse.y"
  1285. { yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
  1286.     break;}
  1287. case 53:
  1288. #line 323 "parse.y"
  1289. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1290.     break;}
  1291. case 54:
  1292. #line 325 "parse.y"
  1293. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1294.     break;}
  1295. case 55:
  1296. #line 327 "parse.y"
  1297. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1298.     break;}
  1299. case 56:
  1300. #line 329 "parse.y"
  1301. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1302.     break;}
  1303. case 57:
  1304. #line 331 "parse.y"
  1305. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1306.     break;}
  1307. case 58:
  1308. #line 333 "parse.y"
  1309. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1310.     break;}
  1311. case 59:
  1312. #line 335 "parse.y"
  1313. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1314.     break;}
  1315. case 60:
  1316. #line 337 "parse.y"
  1317. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1318.     break;}
  1319. case 61:
  1320. #line 339 "parse.y"
  1321. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1322.     break;}
  1323. case 62:
  1324. #line 341 "parse.y"
  1325. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1326.     break;}
  1327. case 63:
  1328. #line 343 "parse.y"
  1329. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1330.     break;}
  1331. case 64:
  1332. #line 345 "parse.y"
  1333. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1334.     break;}
  1335. case 65:
  1336. #line 347 "parse.y"
  1337. { yyval.ttype = build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1338.     break;}
  1339. case 66:
  1340. #line 349 "parse.y"
  1341. { yyval.ttype = build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1342.     break;}
  1343. case 67:
  1344. #line 351 "parse.y"
  1345. { yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1346.     break;}
  1347. case 68:
  1348. #line 353 "parse.y"
  1349. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype); ;
  1350.     break;}
  1351. case 69:
  1352. #line 355 "parse.y"
  1353. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype); ;
  1354.     break;}
  1355. case 70:
  1356. #line 360 "parse.y"
  1357. { yyval.ttype = lastiddecl;
  1358.           if (!yyval.ttype)
  1359.             {
  1360.               if (yychar == YYEMPTY)
  1361.             yychar = YYLEX;
  1362.               if (yychar == '(')
  1363.             yyval.ttype = implicitly_declare (yyvsp[0].ttype);
  1364.               else
  1365.             {
  1366.               if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node)
  1367.                 error ("undeclared variable `%s' (first use here)",
  1368.                    IDENTIFIER_POINTER (yyvsp[0].ttype));
  1369.               yyval.ttype = error_mark_node;
  1370.               /* Prevent repeated error messages.  */
  1371.               IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node;
  1372.             }
  1373.             }
  1374.           if (TREE_CODE (yyval.ttype) == CONST_DECL)
  1375.             yyval.ttype = DECL_INITIAL (yyval.ttype);
  1376.         ;
  1377.     break;}
  1378. case 72:
  1379. #line 382 "parse.y"
  1380. { yyval.ttype = combine_strings (yyvsp[0].ttype); ;
  1381.     break;}
  1382. case 73:
  1383. #line 384 "parse.y"
  1384. { yyval.ttype = yyvsp[-1].ttype; ;
  1385.     break;}
  1386. case 74:
  1387. #line 386 "parse.y"
  1388. { yyval.ttype = error_mark_node; ;
  1389.     break;}
  1390. case 75:
  1391. #line 388 "parse.y"
  1392. { if (current_function_decl == 0)
  1393.             {
  1394.               error ("braced-group within expression allowed only inside a function");
  1395.               YYFAIL;
  1396.             }
  1397.           expand_start_stmt_expr (); ;
  1398.     break;}
  1399. case 76:
  1400. #line 395 "parse.y"
  1401. { if (pedantic)
  1402.             warning ("ANSI C forbids braced-groups within expressions");
  1403.           yyval.ttype = get_last_expr ();
  1404.           expand_end_stmt_expr (); ;
  1405.     break;}
  1406. case 77:
  1407. #line 400 "parse.y"
  1408. { yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1409.     break;}
  1410. case 78:
  1411. #line 402 "parse.y"
  1412. { yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1413.     break;}
  1414. case 79:
  1415. #line 404 "parse.y"
  1416. { yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1417.     break;}
  1418. case 80:
  1419. #line 406 "parse.y"
  1420. { yyval.ttype = build_component_ref (build_indirect_ref (yyvsp[-2].ttype, "->"), yyvsp[0].ttype); ;
  1421.     break;}
  1422. case 81:
  1423. #line 408 "parse.y"
  1424. { yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1425.     break;}
  1426. case 82:
  1427. #line 410 "parse.y"
  1428. { yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1429.     break;}
  1430. case 84:
  1431. #line 417 "parse.y"
  1432. { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1433.     break;}
  1434. case 91:
  1435. #line 435 "parse.y"
  1436. { current_declspecs = yyvsp[0].ttype;
  1437.           yyval.itype = suspend_momentary (); ;
  1438.     break;}
  1439. case 92:
  1440. #line 441 "parse.y"
  1441. { resume_momentary (yyvsp[-2].itype); ;
  1442.     break;}
  1443. case 93:
  1444. #line 443 "parse.y"
  1445. { resume_momentary (yyvsp[-2].itype); ;
  1446.     break;}
  1447. case 94:
  1448. #line 445 "parse.y"
  1449. { shadow_tag (yyvsp[-1].ttype); ;
  1450.     break;}
  1451. case 95:
  1452. #line 447 "parse.y"
  1453. { warning ("empty declaration"); ;
  1454.     break;}
  1455. case 96:
  1456. #line 456 "parse.y"
  1457. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1458.     break;}
  1459. case 97:
  1460. #line 458 "parse.y"
  1461. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1462.     break;}
  1463. case 98:
  1464. #line 462 "parse.y"
  1465. { yyval.ttype = NULL_TREE; ;
  1466.     break;}
  1467. case 99:
  1468. #line 464 "parse.y"
  1469. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1470.     break;}
  1471. case 100:
  1472. #line 466 "parse.y"
  1473. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1474.     break;}
  1475. case 101:
  1476. #line 475 "parse.y"
  1477. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1478.     break;}
  1479. case 102:
  1480. #line 477 "parse.y"
  1481. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1482.     break;}
  1483. case 103:
  1484. #line 479 "parse.y"
  1485. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1486.     break;}
  1487. case 104:
  1488. #line 481 "parse.y"
  1489. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1490.     break;}
  1491. case 105:
  1492. #line 491 "parse.y"
  1493. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1494.     break;}
  1495. case 106:
  1496. #line 493 "parse.y"
  1497. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1498.     break;}
  1499. case 107:
  1500. #line 497 "parse.y"
  1501. { yyval.ttype = NULL_TREE; ;
  1502.     break;}
  1503. case 108:
  1504. #line 499 "parse.y"
  1505. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1506.     break;}
  1507. case 112:
  1508. #line 510 "parse.y"
  1509. { yyval.ttype = TREE_TYPE (yyvsp[-1].ttype);
  1510.           if (pedantic)
  1511.             warning ("ANSI C forbids `typeof'"); ;
  1512.     break;}
  1513. case 113:
  1514. #line 514 "parse.y"
  1515. { yyval.ttype = groktypename (yyvsp[-1].ttype);
  1516.           if (pedantic)
  1517.             warning ("ANSI C forbids `typeof'"); ;
  1518.     break;}
  1519. case 121:
  1520. #line 538 "parse.y"
  1521. { yyval.ttype = NULL_TREE; ;
  1522.     break;}
  1523. case 122:
  1524. #line 540 "parse.y"
  1525. { if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
  1526.           yyval.ttype = yyvsp[-1].ttype;
  1527.           if (pedantic)
  1528.             warning ("ANSI C forbids use of `asm' keyword");
  1529.         ;
  1530.     break;}
  1531. case 123:
  1532. #line 549 "parse.y"
  1533. { yyval.ttype = start_decl (yyvsp[-2].ttype, current_declspecs, 1); ;
  1534.     break;}
  1535. case 124:
  1536. #line 552 "parse.y"
  1537. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-3].ttype); ;
  1538.     break;}
  1539. case 125:
  1540. #line 554 "parse.y"
  1541. { tree d = start_decl (yyvsp[-1].ttype, current_declspecs, 0);
  1542.           finish_decl (d, NULL_TREE, yyvsp[0].ttype); ;
  1543.     break;}
  1544. case 126:
  1545. #line 560 "parse.y"
  1546. { yyval.ttype = start_decl (yyvsp[-2].ttype, current_declspecs, 1); ;
  1547.     break;}
  1548. case 127:
  1549. #line 563 "parse.y"
  1550. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-3].ttype); ;
  1551.     break;}
  1552. case 128:
  1553. #line 565 "parse.y"
  1554. { tree d = start_decl (yyvsp[-1].ttype, current_declspecs, 0);
  1555.           finish_decl (d, NULL_TREE, yyvsp[0].ttype); ;
  1556.     break;}
  1557. case 130:
  1558. #line 572 "parse.y"
  1559. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
  1560.     break;}
  1561. case 131:
  1562. #line 574 "parse.y"
  1563. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
  1564.     break;}
  1565. case 132:
  1566. #line 576 "parse.y"
  1567. { yyval.ttype = NULL_TREE; ;
  1568.     break;}
  1569. case 133:
  1570. #line 583 "parse.y"
  1571. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1572.     break;}
  1573. case 134:
  1574. #line 585 "parse.y"
  1575. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1576.     break;}
  1577. case 137:
  1578. #line 600 "parse.y"
  1579. { yyval.ttype = yyvsp[-1].ttype; ;
  1580.     break;}
  1581. case 138:
  1582. #line 602 "parse.y"
  1583. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1584.     break;}
  1585. case 139:
  1586. #line 607 "parse.y"
  1587. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1588.     break;}
  1589. case 140:
  1590. #line 609 "parse.y"
  1591. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1592.     break;}
  1593. case 141:
  1594. #line 611 "parse.y"
  1595. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1596.     break;}
  1597. case 143:
  1598. #line 622 "parse.y"
  1599. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1600.     break;}
  1601. case 144:
  1602. #line 627 "parse.y"
  1603. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1604.     break;}
  1605. case 145:
  1606. #line 629 "parse.y"
  1607. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1608.     break;}
  1609. case 146:
  1610. #line 631 "parse.y"
  1611. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1612.     break;}
  1613. case 148:
  1614. #line 640 "parse.y"
  1615. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1616.     break;}
  1617. case 149:
  1618. #line 645 "parse.y"
  1619. { yyval.ttype = yyvsp[-1].ttype; ;
  1620.     break;}
  1621. case 150:
  1622. #line 647 "parse.y"
  1623. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1624.     break;}
  1625. case 151:
  1626. #line 649 "parse.y"
  1627. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1628.     break;}
  1629. case 152:
  1630. #line 651 "parse.y"
  1631. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1632.     break;}
  1633. case 154:
  1634. #line 657 "parse.y"
  1635. { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
  1636.           /* Start scope of tag before parsing components.  */
  1637.         ;
  1638.     break;}
  1639. case 155:
  1640. #line 661 "parse.y"
  1641. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
  1642.           /* Really define the structure.  */
  1643.         ;
  1644.     break;}
  1645. case 156:
  1646. #line 665 "parse.y"
  1647. { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
  1648.                       yyvsp[-1].ttype); ;
  1649.     break;}
  1650. case 157:
  1651. #line 668 "parse.y"
  1652. { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
  1653.     break;}
  1654. case 158:
  1655. #line 670 "parse.y"
  1656. { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
  1657.     break;}
  1658. case 159:
  1659. #line 672 "parse.y"
  1660. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1661.     break;}
  1662. case 160:
  1663. #line 674 "parse.y"
  1664. { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
  1665.                       yyvsp[-1].ttype); ;
  1666.     break;}
  1667. case 161:
  1668. #line 677 "parse.y"
  1669. { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
  1670.     break;}
  1671. case 162:
  1672. #line 679 "parse.y"
  1673. { yyvsp[0].itype = suspend_momentary ();
  1674.           yyval.ttype = start_enum (yyvsp[-1].ttype); ;
  1675.     break;}
  1676. case 163:
  1677. #line 682 "parse.y"
  1678. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1679.           resume_momentary (yyvsp[-4].itype); ;
  1680.     break;}
  1681. case 164:
  1682. #line 685 "parse.y"
  1683. { yyvsp[0].itype = suspend_momentary ();
  1684.           yyval.ttype = start_enum (NULL_TREE); ;
  1685.     break;}
  1686. case 165:
  1687. #line 688 "parse.y"
  1688. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1689.           resume_momentary (yyvsp[-4].itype); ;
  1690.     break;}
  1691. case 166:
  1692. #line 691 "parse.y"
  1693. { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
  1694.     break;}
  1695. case 169:
  1696. #line 700 "parse.y"
  1697. { yyval.ttype = NULL_TREE; ;
  1698.     break;}
  1699. case 170:
  1700. #line 702 "parse.y"
  1701. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1702.     break;}
  1703. case 171:
  1704. #line 704 "parse.y"
  1705. { if (pedantic) 
  1706.             warning ("extra semicolon in struct or union specified"); ;
  1707.     break;}
  1708. case 172:
  1709. #line 719 "parse.y"
  1710. { yyval.ttype = yyvsp[0].ttype;
  1711.           resume_momentary (yyvsp[-1].itype); ;
  1712.     break;}
  1713. case 173:
  1714. #line 722 "parse.y"
  1715. { yyval.ttype = yyvsp[0].ttype;
  1716.           resume_momentary (yyvsp[-1].itype); ;
  1717.     break;}
  1718. case 174:
  1719. #line 725 "parse.y"
  1720. { yyval.ttype = NULL_TREE; ;
  1721.     break;}
  1722. case 175:
  1723. #line 730 "parse.y"
  1724. { yyval.ttype = NULL_TREE; ;
  1725.     break;}
  1726. case 177:
  1727. #line 733 "parse.y"
  1728. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1729.     break;}
  1730. case 178:
  1731. #line 738 "parse.y"
  1732. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[0].ttype, current_declspecs, NULL_TREE); ;
  1733.     break;}
  1734. case 179:
  1735. #line 740 "parse.y"
  1736. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[-2].ttype, current_declspecs, yyvsp[0].ttype); ;
  1737.     break;}
  1738. case 180:
  1739. #line 742 "parse.y"
  1740. { yyval.ttype = grokfield (input_filename, lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
  1741.     break;}
  1742. case 182:
  1743. #line 753 "parse.y"
  1744. { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1745.     break;}
  1746. case 183:
  1747. #line 759 "parse.y"
  1748. { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
  1749.     break;}
  1750. case 184:
  1751. #line 761 "parse.y"
  1752. { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1753.     break;}
  1754. case 185:
  1755. #line 766 "parse.y"
  1756. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1757.     break;}
  1758. case 186:
  1759. #line 768 "parse.y"
  1760. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1761.     break;}
  1762. case 187:
  1763. #line 773 "parse.y"
  1764. { yyval.ttype = NULL_TREE; ;
  1765.     break;}
  1766. case 189:
  1767. #line 779 "parse.y"
  1768. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1769.     break;}
  1770. case 190:
  1771. #line 781 "parse.y"
  1772. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1773.     break;}
  1774. case 191:
  1775. #line 786 "parse.y"
  1776. { yyval.ttype = NULL_TREE; ;
  1777.     break;}
  1778. case 192:
  1779. #line 788 "parse.y"
  1780. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1781.     break;}
  1782. case 193:
  1783. #line 793 "parse.y"
  1784. { yyval.ttype = yyvsp[-1].ttype; ;
  1785.     break;}
  1786. case 194:
  1787. #line 796 "parse.y"
  1788. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1789.     break;}
  1790. case 195:
  1791. #line 798 "parse.y"
  1792. { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
  1793.     break;}
  1794. case 196:
  1795. #line 800 "parse.y"
  1796. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1797.     break;}
  1798. case 197:
  1799. #line 802 "parse.y"
  1800. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1801.     break;}
  1802. case 198:
  1803. #line 804 "parse.y"
  1804. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1805.     break;}
  1806. case 199:
  1807. #line 806 "parse.y"
  1808. { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1809.     break;}
  1810. case 200:
  1811. #line 808 "parse.y"
  1812. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
  1813.     break;}
  1814. case 201:
  1815. #line 810 "parse.y"
  1816. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
  1817.     break;}
  1818. case 208:
  1819. #line 832 "parse.y"
  1820. { pushlevel (0);
  1821.           clear_last_expr ();
  1822.           push_momentary ();
  1823.           expand_start_bindings (0); ;
  1824.     break;}
  1825. case 212:
  1826. #line 847 "parse.y"
  1827. { expand_end_bindings (getdecls (), 1);
  1828.           poplevel (1, 1, 0);
  1829.           pop_momentary (); ;
  1830.     break;}
  1831. case 213:
  1832. #line 851 "parse.y"
  1833. { expand_end_bindings (getdecls (), 0);
  1834.           poplevel (0, 0, 0);
  1835.           pop_momentary (); ;
  1836.     break;}
  1837. case 214:
  1838. #line 855 "parse.y"
  1839. { expand_end_bindings (getdecls (), 0);
  1840.           poplevel (0, 0, 0);
  1841.           pop_momentary (); ;
  1842.     break;}
  1843. case 215:
  1844. #line 862 "parse.y"
  1845. { emit_note (input_filename, lineno);
  1846.           expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0); ;
  1847.     break;}
  1848. case 218:
  1849. #line 870 "parse.y"
  1850. { emit_note (input_filename, lineno);
  1851.           expand_expr_stmt (yyvsp[-1].ttype);
  1852.           clear_momentary (); ;
  1853.     break;}
  1854. case 219:
  1855. #line 874 "parse.y"
  1856. { expand_start_else (); ;
  1857.     break;}
  1858. case 220:
  1859. #line 876 "parse.y"
  1860. { expand_end_else (); ;
  1861.     break;}
  1862. case 221:
  1863. #line 878 "parse.y"
  1864. { expand_end_cond (); ;
  1865.     break;}
  1866. case 222:
  1867. #line 880 "parse.y"
  1868. { emit_note (input_filename, lineno);
  1869.           expand_start_loop (1); ;
  1870.     break;}
  1871. case 223:
  1872. #line 883 "parse.y"
  1873. { emit_note (input_filename, lineno);
  1874.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  1875.     break;}
  1876. case 224:
  1877. #line 886 "parse.y"
  1878. { expand_end_loop (); ;
  1879.     break;}
  1880. case 225:
  1881. #line 888 "parse.y"
  1882. { emit_note (input_filename, lineno);
  1883.           expand_start_loop_continue_elsewhere (1); ;
  1884.     break;}
  1885. case 226:
  1886. #line 891 "parse.y"
  1887. { expand_loop_continue_here (); ;
  1888.     break;}
  1889. case 227:
  1890. #line 893 "parse.y"
  1891. { emit_note (input_filename, lineno);
  1892.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-2].ttype));
  1893.           expand_end_loop ();
  1894.           clear_momentary (); ;
  1895.     break;}
  1896. case 228:
  1897. #line 899 "parse.y"
  1898. { emit_note (input_filename, lineno);
  1899.           if (yyvsp[-1].ttype) expand_expr_stmt (yyvsp[-1].ttype);
  1900.           expand_start_loop_continue_elsewhere (1); ;
  1901.     break;}
  1902. case 229:
  1903. #line 903 "parse.y"
  1904. { emit_note (input_filename, lineno);
  1905.           if (yyvsp[-1].ttype)
  1906.             expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  1907.     break;}
  1908. case 230:
  1909. #line 909 "parse.y"
  1910. { push_momentary ();
  1911.           yyvsp[0].itype = lineno; ;
  1912.     break;}
  1913. case 231:
  1914. #line 912 "parse.y"
  1915. { emit_note (input_filename, yyvsp[-2].itype);
  1916.           expand_loop_continue_here ();
  1917.           if (yyvsp[-3].ttype)
  1918.             expand_expr_stmt (yyvsp[-3].ttype);
  1919.           pop_momentary ();
  1920.           expand_end_loop (); ;
  1921.     break;}
  1922. case 232:
  1923. #line 919 "parse.y"
  1924. { emit_note (input_filename, lineno);
  1925.           c_expand_start_case (yyvsp[-1].ttype);
  1926.           /* Don't let the tree nodes for $3 be discarded by
  1927.              clear_momentary during the parsing of the next stmt.  */
  1928.           push_momentary (); ;
  1929.     break;}
  1930. case 233:
  1931. #line 925 "parse.y"
  1932. { expand_end_case ();
  1933.           pop_momentary (); ;
  1934.     break;}
  1935. case 234:
  1936. #line 928 "parse.y"
  1937. { register tree value = fold (yyvsp[-1].ttype);
  1938.           register tree label
  1939.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  1940.  
  1941.           if (TREE_CODE (value) != INTEGER_CST
  1942.               && value != error_mark_node)
  1943.             {
  1944.               error ("case label does not reduce to an integer constant");
  1945.               value = error_mark_node;
  1946.             }
  1947.           else
  1948.             /* Promote char or short to int.  */
  1949.             value = default_conversion (value);
  1950.           if (value != error_mark_node)
  1951.             {
  1952.               int success = pushcase (value, label);
  1953.               if (success == 1)
  1954.             error ("case label not within a switch statement");
  1955.               else if (success == 2)
  1956.             error ("duplicate case value");
  1957.               else if (success == 3)
  1958.             warning ("case value out of range");
  1959.             }
  1960.         ;
  1961.     break;}
  1962. case 236:
  1963. #line 954 "parse.y"
  1964. {
  1965.           register tree label
  1966.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  1967.           int success = pushcase (NULL_TREE, label);
  1968.           if (success == 1)
  1969.             error ("default label not within a switch statement");
  1970.           else if (success == 2)
  1971.             error ("multiple default labels in one switch");
  1972.         ;
  1973.     break;}
  1974. case 238:
  1975. #line 965 "parse.y"
  1976. { emit_note (input_filename, lineno);
  1977.           if ( ! expand_exit_something ())
  1978.             error ("break statement not within loop or switch"); ;
  1979.     break;}
  1980. case 239:
  1981. #line 969 "parse.y"
  1982. { emit_note (input_filename, lineno);
  1983.           if (! expand_continue_loop ())
  1984.             error ("continue statement not within a loop"); ;
  1985.     break;}
  1986. case 240:
  1987. #line 973 "parse.y"
  1988. { emit_note (input_filename, lineno);
  1989.           c_expand_return (NULL_TREE); ;
  1990.     break;}
  1991. case 241:
  1992. #line 976 "parse.y"
  1993. { emit_note (input_filename, lineno);
  1994.           c_expand_return (yyvsp[-1].ttype); ;
  1995.     break;}
  1996. case 242:
  1997. #line 979 "parse.y"
  1998. { if (pedantic)
  1999.             warning ("ANSI C forbids use of `asm' keyword");
  2000.           if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  2001.           expand_asm (yyvsp[-2].ttype); ;
  2002.     break;}
  2003. case 243:
  2004. #line 985 "parse.y"
  2005. { if (pedantic)
  2006.             warning ("ANSI C forbids use of `asm' keyword");
  2007.           if (TREE_CHAIN (yyvsp[-4].ttype)) yyvsp[-4].ttype = combine_strings (yyvsp[-4].ttype);
  2008.           c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
  2009.                      yyvsp[-6].ttype == ridpointers[(int)RID_VOLATILE]); ;
  2010.     break;}
  2011. case 244:
  2012. #line 992 "parse.y"
  2013. { if (pedantic)
  2014.             warning ("ANSI C forbids use of `asm' keyword");
  2015.           if (TREE_CHAIN (yyvsp[-6].ttype)) yyvsp[-6].ttype = combine_strings (yyvsp[-6].ttype);
  2016.           c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
  2017.                      yyvsp[-8].ttype == ridpointers[(int)RID_VOLATILE]); ;
  2018.     break;}
  2019. case 245:
  2020. #line 998 "parse.y"
  2021. { tree decl;
  2022.           emit_note (input_filename, lineno);
  2023.           decl = lookup_label (yyvsp[-1].ttype);
  2024.           expand_goto (decl); ;
  2025.     break;}
  2026. case 246:
  2027. #line 1003 "parse.y"
  2028. { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
  2029.           if (label)
  2030.             expand_label (label); ;
  2031.     break;}
  2032. case 249:
  2033. #line 1012 "parse.y"
  2034. { emit_note (input_filename, lineno); ;
  2035.     break;}
  2036. case 250:
  2037. #line 1014 "parse.y"
  2038. { emit_note (input_filename, lineno); ;
  2039.     break;}
  2040. case 251:
  2041. #line 1019 "parse.y"
  2042. { yyval.ttype = NULL_TREE; ;
  2043.     break;}
  2044. case 253:
  2045. #line 1026 "parse.y"
  2046. { yyval.ttype = NULL_TREE; ;
  2047.     break;}
  2048. case 256:
  2049. #line 1033 "parse.y"
  2050. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  2051.     break;}
  2052. case 257:
  2053. #line 1038 "parse.y"
  2054. { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  2055.     break;}
  2056. case 258:
  2057. #line 1044 "parse.y"
  2058. { pushlevel (0); ;
  2059.     break;}
  2060. case 259:
  2061. #line 1046 "parse.y"
  2062. { yyval.ttype = yyvsp[0].ttype; poplevel (0, 0, 0); ;
  2063.     break;}
  2064. case 260:
  2065. #line 1052 "parse.y"
  2066. { pushlevel (0); ;
  2067.     break;}
  2068. case 261:
  2069. #line 1054 "parse.y"
  2070. { yyval.ttype = yyvsp[0].ttype; poplevel (0, 0, 0); ;
  2071.     break;}
  2072. case 263:
  2073. #line 1060 "parse.y"
  2074. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
  2075.     break;}
  2076. case 264:
  2077. #line 1062 "parse.y"
  2078. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2079.     break;}
  2080. case 266:
  2081. #line 1068 "parse.y"
  2082. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2083.     break;}
  2084. case 267:
  2085. #line 1074 "parse.y"
  2086. { yyval.ttype = get_parm_info (0); ;
  2087.     break;}
  2088. case 268:
  2089. #line 1076 "parse.y"
  2090. { yyval.ttype = get_parm_info (1); ;
  2091.     break;}
  2092. case 269:
  2093. #line 1078 "parse.y"
  2094. { yyval.ttype = get_parm_info (0); ;
  2095.     break;}
  2096. case 270:
  2097. #line 1083 "parse.y"
  2098. { push_parm_decl (yyvsp[0].ttype); ;
  2099.     break;}
  2100. case 271:
  2101. #line 1085 "parse.y"
  2102. { push_parm_decl (yyvsp[0].ttype); ;
  2103.     break;}
  2104. case 272:
  2105. #line 1092 "parse.y"
  2106. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2107.     break;}
  2108. case 273:
  2109. #line 1094 "parse.y"
  2110. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2111.     break;}
  2112. case 274:
  2113. #line 1096 "parse.y"
  2114. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2115.     break;}
  2116. case 275:
  2117. #line 1098 "parse.y"
  2118. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2119.     break;}
  2120. case 276:
  2121. #line 1100 "parse.y"
  2122. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2123.     break;}
  2124. case 277:
  2125. #line 1106 "parse.y"
  2126. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2127.     break;}
  2128. case 278:
  2129. #line 1108 "parse.y"
  2130. { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2131.     break;}
  2132. }
  2133.    /* the action file gets copied in in place of this dollarsign */
  2134. #line 303 "bison.simple"
  2135.  
  2136.   yyvsp -= yylen;
  2137.   yylsp -= yylen;
  2138.   yyssp -= yylen;
  2139.  
  2140. #ifdef YYDEBUG
  2141.   if (yydebug)
  2142.     {
  2143.       short *ssp1 = yyss - 1;
  2144.       fprintf (stderr, "state stack now", yyssp-yyss);
  2145.       while (ssp1 != yyssp)
  2146.     fprintf (stderr, " %d", *++ssp1);
  2147.       fprintf (stderr, "\n");
  2148.     }
  2149. #endif
  2150.  
  2151.   *++yyvsp = yyval;
  2152.  
  2153.   yylsp++;
  2154.   if (yylen == 0)
  2155.     {
  2156.       yylsp->first_line = yylloc.first_line;
  2157.       yylsp->first_column = yylloc.first_column;
  2158.       yylsp->last_line = (yylsp-1)->last_line;
  2159.       yylsp->last_column = (yylsp-1)->last_column;
  2160.       yylsp->text = 0;
  2161.     }
  2162.   else
  2163.     {
  2164.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  2165.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  2166.     }
  2167.  
  2168.   /* Now "shift" the result of the reduction.
  2169.      Determine what state that goes to,
  2170.      based on the state we popped back to
  2171.      and the rule number reduced by.  */
  2172.  
  2173.   yyn = yyr1[yyn];
  2174.  
  2175.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  2176.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2177.     yystate = yytable[yystate];
  2178.   else
  2179.     yystate = yydefgoto[yyn - YYNTBASE];
  2180.  
  2181.   goto yynewstate;
  2182.  
  2183. yyerrlab:   /* here on detecting error */
  2184.  
  2185.   if (! yyerrstatus)
  2186.     /* If not already recovering from an error, report this error.  */
  2187.     {
  2188.       yyerror("parse error");
  2189.     }
  2190.  
  2191.   if (yyerrstatus == 3)
  2192.     {
  2193.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2194.  
  2195.       /* return failure if at end of input */
  2196.       if (yychar == YYEOF)
  2197.     YYERROR;
  2198.  
  2199. #ifdef YYDEBUG
  2200.       if (yydebug)
  2201.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2202. #endif
  2203.  
  2204.       yychar = YYEMPTY;
  2205.     }
  2206.  
  2207.   /* Else will try to reuse lookahead token
  2208.      after shifting the error token.  */
  2209.  
  2210.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2211.  
  2212.   goto yyerrhandle;
  2213.  
  2214. yyerrdefault:  /* current state does not do anything special for the error token. */
  2215.  
  2216. #if 0
  2217.   /* This is wrong; only states that explicitly want error tokens
  2218.      should shift them.  */
  2219.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2220.   if (yyn) goto yydefault;
  2221. #endif
  2222.  
  2223. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2224.  
  2225.   if (yyssp == yyss) YYERROR;
  2226.   yyvsp--;
  2227.   yylsp--;
  2228.   yystate = *--yyssp;
  2229.  
  2230. #ifdef YYDEBUG
  2231.   if (yydebug)
  2232.     {
  2233.       short *ssp1 = yyss - 1;
  2234.       fprintf (stderr, "Error: state stack now", yyssp-yyss);
  2235.       while (ssp1 != yyssp)
  2236.     fprintf (stderr, " %d", *++ssp1);
  2237.       fprintf (stderr, "\n");
  2238.     }
  2239. #endif
  2240.  
  2241. yyerrhandle:
  2242.  
  2243.   yyn = yypact[yystate];
  2244.   if (yyn == YYFLAG)
  2245.     goto yyerrdefault;
  2246.  
  2247.   yyn += YYTERROR;
  2248.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2249.     goto yyerrdefault;
  2250.  
  2251.   yyn = yytable[yyn];
  2252.   if (yyn < 0)
  2253.     {
  2254.       if (yyn == YYFLAG)
  2255.     goto yyerrpop;
  2256.       yyn = -yyn;
  2257.       goto yyreduce;
  2258.     }
  2259.   else if (yyn == 0)
  2260.     goto yyerrpop;
  2261.  
  2262.   if (yyn == YYFINAL)
  2263.     YYACCEPT;
  2264.  
  2265. #ifdef YYDEBUG
  2266.   if (yydebug)
  2267.     fprintf(stderr, "Shifting error token, ");
  2268. #endif
  2269.  
  2270.   *++yyvsp = yylval;
  2271.   *++yylsp = yylloc;
  2272.  
  2273.   yystate = yyn;
  2274.   goto yynewstate;
  2275. }
  2276. #line 1110 "parse.y"
  2277.  
  2278.  
  2279. /* Return something to represent absolute declarators containing a *.
  2280.    TARGET is the absolute declarator that the * contains.
  2281.    TYPE_QUALS is a list of modifiers such as const or volatile
  2282.    to apply to the pointer type, represented as identifiers.
  2283.  
  2284.    We return an INDIRECT_REF whose "contents" are TARGET
  2285.    and whose type is the modifier list.  */
  2286.    
  2287. static tree
  2288. make_pointer_declarator (type_quals, target)
  2289.      tree type_quals, target;
  2290. {
  2291.   return build (INDIRECT_REF, type_quals, target);
  2292. }
  2293.  
  2294. /* Given a chain of STRING_CST nodes,
  2295.    concatenate them into one STRING_CST
  2296.    and give it a suitable array-of-chars data type.  */
  2297.  
  2298. static tree
  2299. combine_strings (strings)
  2300.      tree strings;
  2301. {
  2302.   register tree value, t;
  2303.   register int length = 1;
  2304.   int wide_length = 0;
  2305.   int wide_flag = 0;
  2306.  
  2307.   if (TREE_CHAIN (strings))
  2308.     {
  2309.       /* More than one in the chain, so concatenate.  */
  2310.       register char *p, *q;
  2311.  
  2312.       /* Don't include the \0 at the end of each substring,
  2313.      except for the last one.
  2314.      Count wide strings and ordinary strings separately.  */
  2315.       for (t = strings; t; t = TREE_CHAIN (t))
  2316.     {
  2317.       if (TREE_TYPE (t) == int_array_type_node)
  2318.         {
  2319.           wide_length += (TREE_STRING_LENGTH (t) - 1);
  2320.           wide_flag = 1;
  2321.         }
  2322.       else
  2323.         length += (TREE_STRING_LENGTH (t) - 1);
  2324.     }
  2325.  
  2326.       /* If anything is wide, the non-wides will be converted,
  2327.      which makes them take more space.  */
  2328.       if (wide_flag)
  2329.     length = length * UNITS_PER_WORD + wide_length;
  2330.  
  2331.       p = (char *) oballoc (length);
  2332.  
  2333.       /* Copy the individual strings into the new combined string.
  2334.      If the combined string is wide, convert the chars to ints
  2335.      for any individual strings that are not wide.  */
  2336.  
  2337.       q = p;
  2338.       for (t = strings; t; t = TREE_CHAIN (t))
  2339.     {
  2340.       int len = TREE_STRING_LENGTH (t) - 1;
  2341.       if ((TREE_TYPE (t) == int_array_type_node) == wide_flag)
  2342.         {
  2343.           bcopy (TREE_STRING_POINTER (t), q, len);
  2344.           q += len;
  2345.         }
  2346.       else
  2347.         {
  2348.           int i;
  2349.           for (i = 0; i < len; i++)
  2350.         ((int *) q)[i] = TREE_STRING_POINTER (t)[i];
  2351.           q += len * UNITS_PER_WORD;
  2352.         }
  2353.     }
  2354.       *q = 0;
  2355.  
  2356.       value = make_node (STRING_CST);
  2357.       TREE_STRING_POINTER (value) = p;
  2358.       TREE_STRING_LENGTH (value) = length;
  2359.       TREE_LITERAL (value) = 1;
  2360.     }
  2361.   else
  2362.     {
  2363.       value = strings;
  2364.       length = TREE_STRING_LENGTH (value);
  2365.       if (TREE_TYPE (value) == int_array_type_node)
  2366.     wide_flag = 1;
  2367.     }
  2368.  
  2369.   TREE_TYPE (value)
  2370.     = build_array_type (wide_flag ? integer_type_node : char_type_node,
  2371.             make_index_type (build_int_2 (length - 1, 0)));
  2372.   TREE_LITERAL (value) = 1;
  2373.   TREE_STATIC (value) = 1;
  2374.   return value;
  2375. }
  2376.  
  2377. int lineno;            /* current line number in file being read */
  2378.  
  2379. FILE *finput;            /* input file.
  2380.                    Normally a pipe from the preprocessor.  */
  2381.  
  2382. /* lexical analyzer */
  2383.  
  2384. static int maxtoken;        /* Current nominal length of token buffer */
  2385. static char *token_buffer;    /* Pointer to token buffer.
  2386.                    Actual allocated length is maxtoken + 2.  */
  2387.  
  2388. #define MAXRESERVED 9
  2389.  
  2390. /* frw[I] is index in `reswords' of the first word whose length is I;
  2391.    frw[I+1] is one plus the index of the last word whose length is I.
  2392.    The length of frw must be MAXRESERVED + 2 so there is an element
  2393.    at MAXRESERVED+1 for the case I == MAXRESERVED.  */
  2394.  
  2395. static char frw[MAXRESERVED+2] =
  2396.   { 0, 0, 0, 2, 5, 13, 19, 29, 31, 35, 36 };
  2397.  
  2398. /* Table of reserved words.  */
  2399.  
  2400. struct resword { char *name; short token; enum rid rid;};
  2401.  
  2402. #define NORID RID_UNUSED
  2403.  
  2404. static struct resword reswords[]
  2405.   = {{"if", IF, NORID},
  2406.      {"do", DO, NORID},
  2407.      {"int", TYPESPEC, RID_INT},
  2408.      {"for", FOR, NORID},
  2409.      {"asm", ASM, NORID},
  2410.      {"case", CASE, NORID},
  2411.      {"char", TYPESPEC, RID_CHAR},
  2412.      {"auto", SCSPEC, RID_AUTO},
  2413.      {"goto", GOTO, NORID},
  2414.      {"else", ELSE, NORID},
  2415.      {"long", TYPESPEC, RID_LONG},
  2416.      {"void", TYPESPEC, RID_VOID},
  2417.      {"enum", ENUM, NORID},
  2418.      {"float", TYPESPEC, RID_FLOAT},
  2419.      {"short", TYPESPEC, RID_SHORT},
  2420.      {"union", UNION, NORID},
  2421.      {"break", BREAK, NORID},
  2422.      {"while", WHILE, NORID},
  2423.      {"const", TYPE_QUAL, RID_CONST},
  2424.      {"double", TYPESPEC, RID_DOUBLE},
  2425.      {"static", SCSPEC, RID_STATIC},
  2426.      {"extern", SCSPEC, RID_EXTERN},
  2427.      {"struct", STRUCT, NORID},
  2428.      {"return", RETURN, NORID},
  2429.      {"sizeof", SIZEOF, NORID},
  2430.      {"typeof", TYPEOF, NORID},
  2431.      {"switch", SWITCH, NORID},
  2432.      {"signed", TYPESPEC, RID_SIGNED},
  2433.      {"inline", SCSPEC, RID_INLINE},
  2434.      {"typedef", SCSPEC, RID_TYPEDEF},
  2435.      {"default", DEFAULT, NORID},
  2436.      {"unsigned", TYPESPEC, RID_UNSIGNED},
  2437.      {"continue", CONTINUE, NORID},
  2438.      {"register", SCSPEC, RID_REGISTER},
  2439.      {"volatile", TYPE_QUAL, RID_VOLATILE},
  2440.      {"__alignof", ALIGNOF, NORID}};
  2441.  
  2442. /* The elements of `ridpointers' are identifier nodes
  2443.    for the reserved type names and storage classes.
  2444.    It is indexed by a RID_... value.  */
  2445.  
  2446. tree ridpointers[(int) RID_MAX];
  2447.  
  2448. int check_newline ();
  2449.  
  2450. void
  2451. init_lex ()
  2452. {
  2453.   extern char *malloc ();
  2454.  
  2455.   /* Start it at 0, because check_newline is called at the very beginning
  2456.      and will increment it to 1.  */
  2457.   lineno = 0;
  2458.  
  2459.   maxtoken = 40;
  2460.   token_buffer = malloc (maxtoken + 2);
  2461.   ridpointers[(int) RID_INT] = get_identifier ("int");
  2462.   ridpointers[(int) RID_CHAR] = get_identifier ("char");
  2463.   ridpointers[(int) RID_VOID] = get_identifier ("void");
  2464.   ridpointers[(int) RID_FLOAT] = get_identifier ("float");
  2465.   ridpointers[(int) RID_DOUBLE] = get_identifier ("double");
  2466.   ridpointers[(int) RID_SHORT] = get_identifier ("short");
  2467.   ridpointers[(int) RID_LONG] = get_identifier ("long");
  2468.   ridpointers[(int) RID_UNSIGNED] = get_identifier ("unsigned");
  2469.   ridpointers[(int) RID_SIGNED] = get_identifier ("signed");
  2470.   ridpointers[(int) RID_INLINE] = get_identifier ("inline");
  2471.   ridpointers[(int) RID_CONST] = get_identifier ("const");
  2472.   ridpointers[(int) RID_VOLATILE] = get_identifier ("volatile");
  2473.   ridpointers[(int) RID_AUTO] = get_identifier ("auto");
  2474.   ridpointers[(int) RID_STATIC] = get_identifier ("static");
  2475.   ridpointers[(int) RID_EXTERN] = get_identifier ("extern");
  2476.   ridpointers[(int) RID_TYPEDEF] = get_identifier ("typedef");
  2477.   ridpointers[(int) RID_REGISTER] = get_identifier ("register");
  2478. }
  2479.  
  2480. static void
  2481. reinit_parse_for_function ()
  2482. {
  2483. }
  2484.  
  2485. /* If C is not whitespace, return C.
  2486.    Otherwise skip whitespace and return first nonwhite char read.  */
  2487.  
  2488. static int
  2489. skip_white_space (c)
  2490.      register int c;
  2491. {
  2492.   register int inside;
  2493.  
  2494.   for (;;)
  2495.     {
  2496.       switch (c)
  2497.     {
  2498.     case '/':
  2499.       c = getc (finput);
  2500.       if (c != '*')
  2501.         {
  2502.           ungetc (c, finput);
  2503.           return '/';
  2504.         }
  2505.  
  2506.       c = getc (finput);
  2507.  
  2508.       inside = 1;
  2509.       while (inside)
  2510.         {
  2511.           if (c == '*')
  2512.         {
  2513.           while (c == '*')
  2514.             c = getc (finput);
  2515.  
  2516.           if (c == '/')
  2517.             {
  2518.               inside = 0;
  2519.               c = getc (finput);
  2520.             }
  2521.         }
  2522.           else if (c == '\n')
  2523.         {
  2524.           lineno++;
  2525.           c = getc (finput);
  2526.         }
  2527.           else if (c == EOF)
  2528.         {
  2529.           error ("unterminated comment");
  2530.           break;
  2531.         }
  2532.           else
  2533.         c = getc (finput);
  2534.         }
  2535.  
  2536.       break;
  2537.  
  2538.     case '\n':
  2539.       c = check_newline ();
  2540.       break;
  2541.  
  2542.     case ' ':
  2543.     case '\t':
  2544.     case '\f':
  2545.     case '\r':
  2546.     case '\b':
  2547.       c = getc (finput);
  2548.       break;
  2549.  
  2550.     case '\\':
  2551.       c = getc (finput);
  2552.       if (c == '\n')
  2553.         lineno++;
  2554.       else
  2555.         error ("stray '\\' in program");
  2556.       c = getc (finput);
  2557.       break;
  2558.  
  2559.     default:
  2560.       return (c);
  2561.     }
  2562.     }
  2563. }
  2564.  
  2565.  
  2566.  
  2567. /* Make the token buffer longer, preserving the data in it.
  2568.    P should point to just beyond the last valid character in the old buffer.
  2569.    The value we return is a pointer to the new buffer
  2570.    at a place corresponding to P.  */
  2571.  
  2572. static char *
  2573. extend_token_buffer (p)
  2574.      char *p;
  2575. {
  2576.   int offset = p - token_buffer;
  2577.  
  2578.   maxtoken = maxtoken * 2 + 10;
  2579.   token_buffer = (char *) realloc (token_buffer, maxtoken + 2);
  2580.   if (token_buffer == 0)
  2581.     fatal ("virtual memory exceeded");
  2582.  
  2583.   return token_buffer + offset;
  2584. }
  2585.  
  2586. /* At the beginning of a line, increment the line number
  2587.    and handle a #line directive immediately following.
  2588.    Return first nonwhite char of first non-# line following.  */
  2589.  
  2590. int
  2591. check_newline ()
  2592. {
  2593.   register int c;
  2594.   register int token;
  2595.  
  2596.   while (1)
  2597.     {
  2598.       lineno++;
  2599.  
  2600.       /* Read first nonwhite char on the line.  */
  2601.  
  2602.       c = getc (finput);
  2603.       while (c == ' ' || c == '\t')
  2604.     c = getc (finput);
  2605.  
  2606.       if (c != '#')
  2607.     {
  2608.       /* If not #, return it so caller will use it.  */
  2609.       return c;
  2610.     }
  2611.  
  2612.       /* Read first nonwhite char after the `#'.  */
  2613.  
  2614.       c = getc (finput);
  2615.       while (c == ' ' || c == '\t')
  2616.     c = getc (finput);
  2617.  
  2618.       /* If a letter follows, then if the word here is `line', skip
  2619.      it and ignore it; otherwise, ignore the line, with an error
  2620.      if the word isn't `pragma'.  */
  2621.  
  2622.       if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
  2623.     {
  2624.       if (c == 'p')
  2625.         {
  2626.           if (getc (finput) == 'r'
  2627.           && getc (finput) == 'a'
  2628.           && getc (finput) == 'g'
  2629.           && getc (finput) == 'm'
  2630.           && getc (finput) == 'a'
  2631.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2632.         goto noerror;
  2633.         }
  2634.  
  2635.       else if (c == 'l')
  2636.         {
  2637.           if (getc (finput) == 'i'
  2638.           && getc (finput) == 'n'
  2639.           && getc (finput) == 'e'
  2640.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2641.         goto linenum;
  2642.         }
  2643. #ifdef IDENT_DIRECTIVE
  2644.       else if (c == 'i')
  2645.         {
  2646.           if (getc (finput) == 'd'
  2647.           && getc (finput) == 'e'
  2648.           && getc (finput) == 'n'
  2649.           && getc (finput) == 't'
  2650.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2651.         {
  2652.           extern FILE *asm_out_file;
  2653.  
  2654.           if (pedantic)
  2655.             error ("ANSI C does not allow #ident");
  2656.  
  2657.           /* Here we have just seen `#ident '.
  2658.              A string constant should follow.  */
  2659.  
  2660.           while (c == ' ' || c == '\t')
  2661.             c = getc (finput);
  2662.  
  2663.           /* If no argument, ignore the line.  */
  2664.           if (c == '\n')
  2665.             continue;
  2666.  
  2667.           ungetc (c, finput);
  2668.           token = yylex ();
  2669.           if (token != STRING
  2670.               || TREE_CODE (yylval.ttype) != STRING_CST)
  2671.             {
  2672.               error ("invalid #ident");
  2673.               return getc (finput);
  2674.             }
  2675.  
  2676.           fprintf (asm_out_file, "\t.ident \"%s\"\n",
  2677.                TREE_STRING_POINTER (yylval.ttype));
  2678.  
  2679.           /* Skip the rest of this line.  */
  2680.           while ((c = getc (finput)) && c != '\n');
  2681.           if (c == 0)
  2682.             return 0;
  2683.           continue;
  2684.         }
  2685.         }
  2686. #endif
  2687.  
  2688.       error ("undefined or invalid # directive");
  2689.     noerror:
  2690.  
  2691.       while ((c = getc (finput)) && c != '\n');
  2692.  
  2693.       if (c == 0)
  2694.         return 0;
  2695.       continue;
  2696.     }
  2697.  
  2698.     linenum:
  2699.       /* Here we have either `#line' or `# <nonletter>'.
  2700.      In either case, it should be a line number; a digit should follow.  */
  2701.  
  2702.       while (c == ' ' || c == '\t')
  2703.     c = getc (finput);
  2704.  
  2705.       /* If the # is the only nonwhite char on the line,
  2706.      just ignore it.  Check the new newline.  */
  2707.       if (c == '\n')
  2708.     continue;
  2709.  
  2710.       /* Something follows the #; read a token.  */
  2711.  
  2712.       ungetc (c, finput);
  2713.       token = yylex ();
  2714.  
  2715.       if (token == CONSTANT
  2716.       && TREE_CODE (yylval.ttype) == INTEGER_CST)
  2717.     {
  2718.       /* subtract one, because it is the following line that
  2719.          gets the specified number */
  2720.  
  2721.       int l = TREE_INT_CST_LOW (yylval.ttype) - 1;
  2722.  
  2723.       /* Is this the last nonwhite stuff on the line?  */
  2724.       c = getc (finput);
  2725.       while (c == ' ' || c == '\t')
  2726.         c = getc (finput);
  2727.       if (c == '\n')
  2728.         {
  2729.           /* No more: store the line number and check following line.  */
  2730.           lineno = l;
  2731.           continue;
  2732.         }
  2733.       ungetc (c, finput);
  2734.  
  2735.       /* More follows: it must be a string constant (filename).  */
  2736.  
  2737.       token = yylex ();
  2738.       if (token != STRING || TREE_CODE (yylval.ttype) != STRING_CST)
  2739.         {
  2740.           error ("invalid #line");
  2741.           return getc (finput);
  2742.         }
  2743.  
  2744.       input_filename
  2745.         = (char *) permalloc (TREE_STRING_LENGTH (yylval.ttype) + 1);
  2746.       strcpy (input_filename, TREE_STRING_POINTER (yylval.ttype));
  2747.       lineno = l;
  2748.  
  2749.       if (main_input_filename == 0)
  2750.         main_input_filename = input_filename;
  2751.     }
  2752.       else
  2753.     error ("invalid #line");
  2754.  
  2755.       /* skip the rest of this line.  */
  2756.       while ((c = getc (finput)) && c != '\n');
  2757.       if (c == 0)
  2758.     return 0;
  2759.     }
  2760. }
  2761.  
  2762. #define isalnum(char) ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9'))
  2763. #define isdigit(char) (char >= '0' && char <= '9')
  2764. #define ENDFILE -1  /* token that represents end-of-file */
  2765.  
  2766.  
  2767. static int
  2768. readescape ()
  2769. {
  2770.   register int c = getc (finput);
  2771.   register int count, code;
  2772.  
  2773.   switch (c)
  2774.     {
  2775.     case 'x':
  2776.       code = 0;
  2777.       count = 0;
  2778.       while (1)
  2779.     {
  2780.       c = getc (finput);
  2781.       if (!(c >= 'a' && c <= 'f')
  2782.           && !(c >= 'A' && c <= 'F')
  2783.           && !(c >= '0' && c <= '9'))
  2784.         {
  2785.           ungetc (c, finput);
  2786.           break;
  2787.         }
  2788.       code *= 16;
  2789.       if (c >= 'a' && c <= 'f')
  2790.         code += c - 'a' + 10;
  2791.       if (c >= 'A' && c <= 'F')
  2792.         code += c - 'A' + 10;
  2793.       if (c >= '0' && c <= '9')
  2794.         code += c - '0';
  2795.       count++;
  2796.     }
  2797.       if (count == 0)
  2798.     error ("\\x used with no following hex digits");
  2799.       return code;
  2800.  
  2801.     case '0':  case '1':  case '2':  case '3':  case '4':
  2802.     case '5':  case '6':  case '7':
  2803.       code = 0;
  2804.       count = 0;
  2805.       while ((c <= '7') && (c >= '0') && (count++ < 3))
  2806.     {
  2807.       code = (code * 8) + (c - '0');
  2808.       c = getc (finput);
  2809.     }
  2810.       ungetc (c, finput);
  2811.       return code;
  2812.  
  2813.     case '\\': case '\'': case '"':
  2814.       return c;
  2815.  
  2816.     case '\n':
  2817.       lineno++;
  2818.       return -1;
  2819.  
  2820.     case 'n':
  2821.       return TARGET_NEWLINE;
  2822.  
  2823.     case 't':
  2824.       return TARGET_TAB;
  2825.  
  2826.     case 'r':
  2827.       return TARGET_CR;
  2828.  
  2829.     case 'f':
  2830.       return TARGET_FF;
  2831.  
  2832.     case 'b':
  2833.       return TARGET_BS;
  2834.  
  2835.     case 'a':
  2836.       return TARGET_BELL;
  2837.  
  2838.     case 'v':
  2839.       return TARGET_VT;
  2840.  
  2841.     case 'E':
  2842.       return 033;
  2843.  
  2844.     case '?':
  2845.       return c;
  2846.     }
  2847.   if (c >= 040 && c <= 0177)
  2848.     warning ("unknown escape sequence `\\%c'", c);
  2849.   else
  2850.     warning ("unknown escape sequence: `\\' followed by char code 0x%x", c);
  2851.   return c;
  2852. }
  2853.  
  2854. void
  2855. yyerror (string)
  2856.      char *string;
  2857. {
  2858.   char buf[200];
  2859.  
  2860.   strcpy (buf, string);
  2861.  
  2862.   /* We can't print string and character constants well
  2863.      because the token_buffer contains the result of processing escapes.  */
  2864.   if (token_buffer[0] == 0)
  2865.     strcat (buf, " at end of input");
  2866.   else if (token_buffer[0] == '"')
  2867.     strcat (buf, " before string constant");
  2868.   else if (token_buffer[0] == '\'')
  2869.     strcat (buf, " before character constant");
  2870.   else
  2871.     strcat (buf, " before `%s'");
  2872.  
  2873.   error (buf, token_buffer);
  2874. }
  2875.  
  2876. static int nextchar = -1;
  2877.  
  2878. static int
  2879. yylex ()
  2880. {
  2881.   register int c;
  2882.   register char *p;
  2883.   register int value;
  2884.   int wide_flag = 0;
  2885.  
  2886.   if (nextchar >= 0)
  2887.     c = nextchar, nextchar = -1;
  2888.   else
  2889.     c = getc (finput);
  2890.  
  2891.   /* Effectively do c = skip_white_space (c)
  2892.      but do it faster in the usual cases.  */
  2893.   while (1)
  2894.     switch (c)
  2895.       {
  2896.       case ' ':
  2897.       case '\t':
  2898.       case '\f':
  2899.       case '\r':
  2900.       case '\b':
  2901.     c = getc (finput);
  2902.     break;
  2903.  
  2904.       case '\n':
  2905.       case '/':
  2906.       case '\\':
  2907.     c = skip_white_space (c);
  2908.       default:
  2909.     goto found_nonwhite;
  2910.       }
  2911.  found_nonwhite:
  2912.  
  2913.   token_buffer[0] = c;
  2914.   token_buffer[1] = 0;
  2915.  
  2916. /*  yylloc.first_line = lineno; */
  2917.  
  2918.   switch (c)
  2919.     {
  2920.     case EOF:
  2921.       token_buffer[0] = 0;
  2922.       value = ENDFILE;
  2923.       break;
  2924.  
  2925.     case '$':
  2926.       if (dollars_in_ident)
  2927.     goto letter;
  2928.       return '$';
  2929.  
  2930.     case 'L':
  2931.       /* Capital L may start a wide-string or wide-character constant.  */
  2932.       {
  2933.     register int c = getc (finput);
  2934.     if (c == '\'')
  2935.       {
  2936.         wide_flag = 1;
  2937.         goto char_constant;
  2938.       }
  2939.     if (c == '"')
  2940.       {
  2941.         wide_flag = 1;
  2942.         goto string_constant;
  2943.       }
  2944.     ungetc (c, finput);
  2945.       }
  2946.  
  2947.     case 'A':  case 'B':  case 'C':  case 'D':  case 'E':
  2948.     case 'F':  case 'G':  case 'H':  case 'I':  case 'J':
  2949.     case 'K':          case 'M':  case 'N':  case 'O':
  2950.     case 'P':  case 'Q':  case 'R':  case 'S':  case 'T':
  2951.     case 'U':  case 'V':  case 'W':  case 'X':  case 'Y':
  2952.     case 'Z':
  2953.     case 'a':  case 'b':  case 'c':  case 'd':  case 'e':
  2954.     case 'f':  case 'g':  case 'h':  case 'i':  case 'j':
  2955.     case 'k':  case 'l':  case 'm':  case 'n':  case 'o':
  2956.     case 'p':  case 'q':  case 'r':  case 's':  case 't':
  2957.     case 'u':  case 'v':  case 'w':  case 'x':  case 'y':
  2958.     case 'z':
  2959.     case '_':
  2960.     letter:
  2961.       p = token_buffer;
  2962.       while (isalnum (c) || c == '_' || c == '$')
  2963.     {
  2964.       if (p >= token_buffer + maxtoken)
  2965.         p = extend_token_buffer (p);
  2966.       if (c == '$' && ! dollars_in_ident)
  2967.         break;
  2968.  
  2969.       *p++ = c;
  2970.       c = getc (finput);
  2971.     }
  2972.  
  2973.       *p = 0;
  2974.       nextchar = c;
  2975.  
  2976.       value = IDENTIFIER;
  2977.       yylval.itype = 0;
  2978.  
  2979.       /* Try to recognize a keyword.  */
  2980.  
  2981.       if (p - token_buffer <= MAXRESERVED)
  2982.     {
  2983.       register int lim = frw [p - token_buffer + 1];
  2984.       register int i = frw[p - token_buffer];
  2985.       register struct resword *p = &reswords[i];
  2986.  
  2987.       for (; i < lim; i++, p++)
  2988.         if (p->name[0] == token_buffer[0]
  2989.         && !strcmp (p->name, token_buffer))
  2990.           {
  2991.         if (p->rid)
  2992.           yylval.ttype = ridpointers[(int) p->rid];
  2993.         if ((! flag_no_asm
  2994.              || ((int) p->token != ASM
  2995.              && (int) p->token != TYPEOF
  2996.              && strcmp (p->name, "inline")))
  2997.             /* -ftraditional means don't recognize
  2998.                typeof, const, volatile, signed or inline.  */
  2999.             && (! flag_traditional
  3000.             || ((int) p->token != TYPE_QUAL
  3001.                 && (int) p->token != TYPEOF
  3002.                 && strcmp (p->name, "signed")
  3003.                 && strcmp (p->name, "inline"))))
  3004.           value = (int) p->token;
  3005.         break;
  3006.           }
  3007.     }
  3008.  
  3009.       /* If we did not find a keyword, look for an identifier
  3010.      (or a typename).  */
  3011.  
  3012.       if (value == IDENTIFIER)
  3013.     {
  3014.           yylval.ttype = get_identifier (token_buffer);
  3015.       lastiddecl = lookup_name (yylval.ttype);
  3016.  
  3017.       if (lastiddecl != 0 && TREE_CODE (lastiddecl) == TYPE_DECL)
  3018.         value = TYPENAME;
  3019.     }
  3020.  
  3021.       break;
  3022.  
  3023.     case '0':  case '1':  case '2':  case '3':  case '4':
  3024.     case '5':  case '6':  case '7':  case '8':  case '9':
  3025.     case '.':
  3026.       {
  3027.     int base = 10;
  3028.     int count = 0;
  3029.     int largest_digit = 0;
  3030.     int numdigits = 0;
  3031.     /* for multi-precision arithmetic,
  3032.        we store only 8 live bits in each short,
  3033.        giving us 64 bits of reliable precision */
  3034.     short shorts[8];
  3035.     int floatflag = 0;  /* Set 1 if we learn this is a floating constant */
  3036.  
  3037.     for (count = 0; count < 8; count++)
  3038.       shorts[count] = 0;
  3039.  
  3040.     p = token_buffer;
  3041.     *p++ = c;
  3042.  
  3043.     if (c == '0')
  3044.       {
  3045.         *p++ = (c = getc (finput));
  3046.         if ((c == 'x') || (c == 'X'))
  3047.           {
  3048.         base = 16;
  3049.         *p++ = (c = getc (finput));
  3050.           }
  3051.         else
  3052.           {
  3053.         base = 8;
  3054.         numdigits++;
  3055.           }
  3056.       }
  3057.  
  3058.     /* Read all the digits-and-decimal-points.  */
  3059.  
  3060.     while (c == '.'
  3061.            || (isalnum (c) && (c != 'l') && (c != 'L')
  3062.            && (c != 'u') && (c != 'U')
  3063.            && (!floatflag || ((c != 'f') && (c != 'F')))))
  3064.       {
  3065.         if (c == '.')
  3066.           {
  3067.         if (base == 16)
  3068.           error ("floating constant may not be in radix 16");
  3069.         floatflag = 1;
  3070.         base = 10;
  3071.         *p++ = c = getc (finput);
  3072.         /* Accept '.' as the start of a floating-point number
  3073.            only when it is followed by a digit.
  3074.            Otherwise, unread the following non-digit
  3075.            and use the '.' as a structural token.  */
  3076.         if (p == token_buffer + 2 && !isdigit (c))
  3077.           {
  3078.             if (c == '.')
  3079.               {
  3080.             c = getc (finput);
  3081.             if (c == '.')
  3082.               {
  3083.                 *p++ = c;
  3084.                 *p = 0;
  3085.                 return ELLIPSIS;
  3086.               }
  3087.             error ("parse error at `..'");
  3088.               }
  3089.             ungetc (c, finput);
  3090.             token_buffer[1] = 0;
  3091.             value = '.';
  3092.             goto done;
  3093.           }
  3094.           }
  3095.         else
  3096.           {
  3097.         /* It is not a decimal point.
  3098.            It should be a digit (perhaps a hex digit).  */
  3099.  
  3100.         if (isdigit (c))
  3101.           {
  3102.             c = c - '0';
  3103.           }
  3104.         else if (base <= 10)
  3105.           {
  3106.             if ((c&~040) == 'E')
  3107.               {
  3108.             base = 10;
  3109.             floatflag = 1;
  3110.             break;   /* start of exponent */
  3111.               }
  3112.             error ("nondigits in number and not hexadecimal");
  3113.             c = 0;
  3114.           }
  3115.         else if (c >= 'a')
  3116.           {
  3117.             c = c - 'a' + 10;
  3118.           }
  3119.         else
  3120.           {
  3121.             c = c - 'A' + 10;
  3122.           }
  3123.         if (c >= largest_digit)
  3124.           largest_digit = c;
  3125.         numdigits++;
  3126.         
  3127.         for (count = 0; count < 8; count++)
  3128.           {
  3129.             (shorts[count] *= base);
  3130.             if (count)
  3131.               {
  3132.             shorts[count] += (shorts[count-1] >> 8);
  3133.             shorts[count-1] &= (1<<8)-1;
  3134.               }
  3135.             else shorts[0] += c;
  3136.           }
  3137.     
  3138.         if (p >= token_buffer + maxtoken - 3)
  3139.           p = extend_token_buffer (p);
  3140.         *p++ = (c = getc (finput));
  3141.           }
  3142.       }
  3143.  
  3144.     if (numdigits == 0)
  3145.       error ("numeric constant with no digits");
  3146.  
  3147.     if (largest_digit >= base)
  3148.       error ("numeric constant contains digits beyond the radix");
  3149.  
  3150.     /* Remove terminating char from the token buffer and delimit the string */
  3151.     *--p = 0;
  3152.  
  3153.     if (floatflag)
  3154.       {
  3155.         tree type = double_type_node;
  3156.         char f_seen = 0;
  3157.         char l_seen = 0;
  3158.         double value;
  3159.  
  3160.         /* Read explicit exponent if any, and put it in tokenbuf.  */
  3161.  
  3162.         if ((c == 'e') || (c == 'E'))
  3163.           {
  3164.         if (p >= token_buffer + maxtoken - 3)
  3165.           p = extend_token_buffer (p);
  3166.         *p++ = c;
  3167.         c = getc (finput);
  3168.         if ((c == '+') || (c == '-'))
  3169.           {
  3170.             *p++ = c;
  3171.             c = getc (finput);
  3172.           }
  3173.         if (! isdigit (c))
  3174.           error ("floating constant exponent has no digits");
  3175.             while (isdigit (c))
  3176.           {
  3177.             if (p >= token_buffer + maxtoken - 3)
  3178.               p = extend_token_buffer (p);
  3179.             *p++ = c;
  3180.             c = getc (finput);
  3181.           }
  3182.           }
  3183.  
  3184.         *p = 0;
  3185.         errno = 0;
  3186.         value = atof (token_buffer);
  3187. #ifdef ERANGE
  3188.         if (errno == ERANGE && !flag_traditional)
  3189.           error ("floating point number exceeds range of `double'");
  3190. #endif
  3191.  
  3192.         /* Read the suffixes to choose a data type.  */
  3193.         while (1)
  3194.           {
  3195.         if (c == 'f' || c == 'F')
  3196.           {
  3197.             if (f_seen)
  3198.               error ("two `f's in floating constant");
  3199.             f_seen = 1;
  3200.             type = float_type_node;
  3201.           }
  3202.         else if (c == 'l' || c == 'L')
  3203.           {
  3204.             if (l_seen)
  3205.               error ("two `l's in floating constant");
  3206.             l_seen = 1;
  3207.             type = long_double_type_node;
  3208.           }
  3209.         else
  3210.           {
  3211.             if (isalnum (c))
  3212.               {
  3213.             error ("garbage at end of number");
  3214.             while (isalnum (c))
  3215.               {
  3216.                 if (p >= token_buffer + maxtoken - 3)
  3217.                   p = extend_token_buffer (p);
  3218.                 *p++ = c;
  3219.                 c = getc (finput);
  3220.               }
  3221.               }
  3222.             break;
  3223.           }
  3224.         if (p >= token_buffer + maxtoken - 3)
  3225.           p = extend_token_buffer (p);
  3226.         *p++ = c;
  3227.         c = getc (finput);
  3228.           }
  3229.  
  3230.         /* Create a node with determined type and value.  */
  3231.         yylval.ttype = build_real (type, value);
  3232.  
  3233.         ungetc (c, finput);
  3234.         *p = 0;
  3235.       }
  3236.     else
  3237.       {
  3238.         tree type;
  3239.         int spec_unsigned = 0;
  3240.         int spec_long = 0;
  3241.  
  3242.         while (1)
  3243.           {
  3244.         if (c == 'u' || c == 'U')
  3245.           {
  3246.             if (spec_unsigned)
  3247.               error ("two `u's in integer constant");
  3248.             spec_unsigned = 1;
  3249.           }
  3250.         else if (c == 'l' || c == 'L')
  3251.           {
  3252.             if (spec_long)
  3253.               error ("two `l's in integer constant");
  3254.             spec_long = 1;
  3255.           }
  3256.         else
  3257.           {
  3258.             if (isalnum (c))
  3259.               {
  3260.             error ("garbage at end of number");
  3261.             while (isalnum (c))
  3262.               {
  3263.                 if (p >= token_buffer + maxtoken - 3)
  3264.                   p = extend_token_buffer (p);
  3265.                 *p++ = c;
  3266.                 c = getc (finput);
  3267.               }
  3268.               }
  3269.             break;
  3270.           }
  3271.         if (p >= token_buffer + maxtoken - 3)
  3272.           p = extend_token_buffer (p);
  3273.         *p++ = c;
  3274.         c = getc (finput);
  3275.           }
  3276.  
  3277.         ungetc (c, finput);
  3278.  
  3279.         if (shorts[7] | shorts[6] | shorts[5] | shorts[4])
  3280.           warning ("integer constant out of range");
  3281.  
  3282.         /* This is simplified by the fact that our constant
  3283.            is always positive.  */
  3284.         yylval.ttype
  3285.           = build_int_2 ((shorts[3]<<24) + (shorts[2]<<16) + (shorts[1]<<8) + shorts[0],
  3286.                  0);
  3287.     
  3288.         if (!spec_long && !spec_unsigned
  3289.         && int_fits_type_p (yylval.ttype, integer_type_node))
  3290.           type = integer_type_node;
  3291.  
  3292.         else if (!spec_long && base != 10
  3293.         && int_fits_type_p (yylval.ttype, unsigned_type_node))
  3294.           type = unsigned_type_node;
  3295.  
  3296.         else if (!spec_unsigned
  3297.         && int_fits_type_p (yylval.ttype, long_integer_type_node))
  3298.           type = long_integer_type_node;
  3299.  
  3300.         else
  3301.           {
  3302.         type = long_unsigned_type_node;
  3303.         if (! int_fits_type_p (yylval.ttype, long_unsigned_type_node))
  3304.           warning ("integer constant out of range");
  3305.           }
  3306.         TREE_TYPE (yylval.ttype) = type;
  3307.       }
  3308.  
  3309.     value = CONSTANT; break;
  3310.       }
  3311.  
  3312.     case '\'':
  3313.     char_constant:
  3314.       c = getc (finput);
  3315.       {
  3316.     register int code = 0;
  3317.  
  3318.       tryagain:
  3319.  
  3320.     if (c == '\\')
  3321.       {
  3322.         c = readescape ();
  3323.         if (c < 0)
  3324.           goto tryagain;
  3325.       }
  3326.     else if (c == '\n')
  3327.       {
  3328.         if (pedantic)
  3329.           warning ("ANSI C forbids newline in character constant");
  3330.         lineno++;
  3331.       }
  3332.  
  3333.     code = c;
  3334.     token_buffer[1] = c;
  3335.     token_buffer[2] = '\'';
  3336.     token_buffer[3] = 0;
  3337.  
  3338.     c = getc (finput);
  3339.     if (c != '\'')
  3340.       error ("malformatted character constant");
  3341.  
  3342.     /* If char type is signed, sign-extend the constant.  */
  3343.     if (TREE_UNSIGNED (char_type_node)
  3344.         || ((code >> (BITS_PER_UNIT - 1)) & 1) == 0)
  3345.       yylval.ttype = build_int_2 (code & ((1 << BITS_PER_UNIT) - 1), 0);
  3346.     else
  3347.       yylval.ttype = build_int_2 (code | ((-1) << BITS_PER_UNIT), -1);
  3348.  
  3349.     TREE_TYPE (yylval.ttype) = integer_type_node;
  3350.     value = CONSTANT; break;
  3351.       }
  3352.  
  3353.     case '"':
  3354.     string_constant:
  3355.       {
  3356.     c = getc (finput);
  3357.     p = token_buffer + 1;
  3358.  
  3359.     while (c != '"')
  3360.       {
  3361.         if (c == '\\')
  3362.           {
  3363.         c = readescape ();
  3364.         if (c < 0)
  3365.           goto skipnewline;
  3366.           }
  3367.         else if (c == '\n')
  3368.           {
  3369.         if (pedantic)
  3370.           warning ("ANSI C forbids newline in string constant");
  3371.         lineno++;
  3372.           }
  3373.  
  3374.         if (p == token_buffer + maxtoken)
  3375.           p = extend_token_buffer (p);
  3376.         *p++ = c;
  3377.  
  3378.       skipnewline:
  3379.         c = getc (finput);
  3380.       }
  3381.  
  3382.     *p = 0;
  3383.  
  3384.     if (wide_flag)
  3385.       {
  3386.         /* If this is a L"..." wide-string, convert each char
  3387.            to an int, making a vector of ints.  */
  3388.         int *widebuf = (int *) alloca (p - token_buffer);
  3389.         char *p1 = token_buffer + 1;
  3390.         for (; p1 != p; p1++)
  3391.           widebuf[p1 - token_buffer - 1] = *p1;
  3392.         yylval.ttype = build_string ((p - token_buffer) * sizeof (int),
  3393.                      widebuf);
  3394.         TREE_TYPE (yylval.ttype) = int_array_type_node;
  3395.       }
  3396.     else
  3397.       {
  3398.         yylval.ttype = build_string (p - token_buffer, token_buffer + 1);
  3399.         TREE_TYPE (yylval.ttype) = char_array_type_node;
  3400.       }
  3401.  
  3402.     *p++ = '"';
  3403.     *p = 0;
  3404.  
  3405.     value = STRING; break;
  3406.       }
  3407.       
  3408.     case '+':
  3409.     case '-':
  3410.     case '&':
  3411.     case '|':
  3412.     case '<':
  3413.     case '>':
  3414.     case '*':
  3415.     case '/':
  3416.     case '%':
  3417.     case '^':
  3418.     case '!':
  3419.     case '=':
  3420.       {
  3421.     register int c1;
  3422.  
  3423.       combine:
  3424.  
  3425.     switch (c)
  3426.       {
  3427.       case '+':
  3428.         yylval.code = PLUS_EXPR; break;
  3429.       case '-':
  3430.         yylval.code = MINUS_EXPR; break;
  3431.       case '&':
  3432.         yylval.code = BIT_AND_EXPR; break;
  3433.       case '|':
  3434.         yylval.code = BIT_IOR_EXPR; break;
  3435.       case '*':
  3436.         yylval.code = MULT_EXPR; break;
  3437.       case '/':
  3438.         yylval.code = TRUNC_DIV_EXPR; break;
  3439.       case '%':
  3440.         yylval.code = TRUNC_MOD_EXPR; break;
  3441.       case '^':
  3442.         yylval.code = BIT_XOR_EXPR; break;
  3443.       case LSHIFT:
  3444.         yylval.code = LSHIFT_EXPR; break;
  3445.       case RSHIFT:
  3446.         yylval.code = RSHIFT_EXPR; break;
  3447.       case '<':
  3448.         yylval.code = LT_EXPR; break;
  3449.       case '>':
  3450.         yylval.code = GT_EXPR; break;
  3451.       }    
  3452.  
  3453.     token_buffer[1] = c1 = getc (finput);
  3454.     token_buffer[2] = 0;
  3455.  
  3456.     if (c1 == '=')
  3457.       {
  3458.         switch (c)
  3459.           {
  3460.           case '<':
  3461.         value = ARITHCOMPARE; yylval.code = LE_EXPR; goto done;
  3462.           case '>':
  3463.         value = ARITHCOMPARE; yylval.code = GE_EXPR; goto done;
  3464.           case '!':
  3465.         value = EQCOMPARE; yylval.code = NE_EXPR; goto done;
  3466.           case '=':
  3467.         value = EQCOMPARE; yylval.code = EQ_EXPR; goto done;
  3468.           }    
  3469.         value = ASSIGN; goto done;
  3470.       }
  3471.     else if (c == c1)
  3472.       switch (c)
  3473.         {
  3474.         case '+':
  3475.           value = PLUSPLUS; goto done;
  3476.         case '-':
  3477.           value = MINUSMINUS; goto done;
  3478.         case '&':
  3479.           value = ANDAND; goto done;
  3480.         case '|':
  3481.           value = OROR; goto done;
  3482.         case '<':
  3483.           c = LSHIFT;
  3484.           goto combine;
  3485.         case '>':
  3486.           c = RSHIFT;
  3487.           goto combine;
  3488.         }
  3489.     else if ((c == '-') && (c1 == '>'))
  3490.       { value = POINTSAT; goto done; }
  3491.     ungetc (c1, finput);
  3492.     token_buffer[1] = 0;
  3493.  
  3494.     if ((c == '<') || (c == '>'))
  3495.       value = ARITHCOMPARE;
  3496.     else value = c;
  3497.     goto done;
  3498.       }
  3499.  
  3500.     default:
  3501.       value = c;
  3502.     }
  3503.  
  3504. done:
  3505. /*  yylloc.last_line = lineno; */
  3506.  
  3507.   return value;
  3508. }
  3509.